Changes

Jump to: navigation, search

Introducing C Sharp Arrays

No change in size, 18:05, 1 February 2016
m
Text replacement - "<google>ADSDAQBOX_FLOW</google>" to "<htmlet>adsdaqbox_flow</htmlet>"
== Accessing Array Values ==
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
Once values have been stored in an array it is highly likely that these values will need to be accessed at some later point in the C# code. This is achieved using the ''array accessor'' notation combined with the index into the array of the desired value. The ''array accessor'' is simply the array name followed by square brackets. Within the square brackets is placed a number representing the index into the array of the desired value (keeping in mind that the first array element in C# is index 0). For example, to access the second element of our ''myColors'' array the following notation would be used:

Navigation menu