print content of array c#
//array of numbers, it works with strings also
int numbers[3] = {1, 4, 5, 6}
/*declares int named 'number' and assigns it the value of an index
starting from index 0 to the end of the array, in this case, 3*/
foreach(int number in numbers){
//prints the number
Console.WriteLine(number);
}
Also in C#:
- tachyons
- c# get today's date
- c# singleton
- how to close a form c#
- unity c# foreach
- uinput dialog uwp c#
- c sharp list length
- condition when a animation finishes in unity
- C# .net core convert to int round up
- c# textbox tab column
- instantiate offset unity
- length of a string c#
- unity face direction of movement
- .net core cli
- mongodb c# batch find
- web api startup add imemory cache object
- c# build string out of list of strings
- send type as argument c#
- git checkout reset hard
- c# display float with 2 decimal places
- how to select time and date in datetimepicker in c#
- get all child gameObject of gameObject C#
- redirect to https codeigniter
- how to reference scripts in other scenes unity