I have an array defined:
int [,] ary;
// ...
int nArea = ary.Length; // x*y or total area
This is all well and good, but I need to know how wide this array is in the x
and y
dimensions individually. Namely, ary.Length
might return 12 - but does that mean the array is 4 high and 3 wide, or 6 high and 2 wide?
How can I retrieve this information?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…