Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

C# int array

int[,] array = new int[4, 2];
int[,] array2D_1 = new int[,] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } };
int[,] array2D_2 = new int[4, 2] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } };
int[,,] array3D = new int[2, 3, 4] { 
  									 { { 1, 2, 3, 4 }, { 5, 6, 7, 8 }, { 9, 10, 11, 12 } },
                                     { { 13, 14, 15, 16 }, { 17, 18, 19, 20 }, { 21, 22, 23, 24 } } 
                                   };

// array2D_1[0,1] = 2  
// array2D_2[1,0] = 3
// array3D[1,2,3] = 24
Comment

PREVIOUS NEXT
Code Example
Csharp :: event trigger by code unity 
Csharp :: unity print vs debug log 
Csharp :: string to datetime c# 
Csharp :: c# remove first 5 characters from string 
Csharp :: unity editor script 
Csharp :: length of array c# unity 
Csharp :: c# add object to array 
Csharp :: multithreading in c# 
Csharp :: how to save a dictionary as a csv file in c# 
Csharp :: unity create empty gameobject in code 
Csharp :: length of a string c# 
Csharp :: unity get game version 
Csharp :: unity3d find y position on navmesh 
Csharp :: how use vue createApp 
Csharp :: unity gui text 
Csharp :: unity text custom color 
Csharp :: multi line comment c# 
Csharp :: unity create 3d object in script 
Csharp :: xamarin picker 
Csharp :: c# public static string 
Csharp :: remove multiple items from list c# 
Csharp :: how to get row index of selected row in gridview asp.net webforms 
Csharp :: c# datetime blank 
Csharp :: input unity 
Csharp :: cs string to enum 
Csharp :: published net core did not have wwwroot 
Csharp :: wpf clear grid 
Csharp :: unity guid to object 
Csharp :: unity draw ray from one object to another 
Csharp :: disabling a button if textbox is empty c# 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =