, . , .
, . , . () : , .., .
. , ( ).
, . : null .
# . , , .
, .
:
[] _ = new [];
. , , . []. , , , :
- ;
- ; .
# new. 4 :
int[ ] b = new int[4];
b, int[ ]. new 4 , .
3 :
string[ ] s = new string[3];
s string[ ]. new 3 , null. , , .
:
int[ ] b;
b = new int[4];
, . .
|
|
. , . , int, uint, long ulong.
, :
short m =...;
string[ ] s = new string[m + 1];
. . C# , (, b 0 3). , , : b[2], s[i].
, . , , , .. .
# , , :
IndexOutOfRangeException.
. , , , :
int [ ] = new int[10];
int[ ] b = ;
, b .