// Define Array with 3 strings and 2 based on.
Array a = Array.CreateInstance(typeof(string), new int[]{3}, new int[]{2});
a.SetValue("a", 2);
Console.WriteLine(a);
// Define Array with 3 x 3 strings and 0 based on.
Array b= Array.CreateInstance(typeof(string), 3, 3);
b.SetValue("a", 2, 2);
Console.WriteLine(b);
Result
댓글 없음:
댓글 쓰기