The search terms size of array in C# gives many links that tells you the answer to your question and much more. One of the most important skills a programmer must learn is how to find information. It is often faster to find the answer yourself, especially if the same question has been asked before.
使用教程
如果你刚刚开始学习 C # ,你会发现学习一个教程会更容易。我可以推荐 MSDN 上的 C# tutorials。如果你想要一本书,我推荐 必备 C # 。
For multiple dimension arrays the Length property returns the total number of items in the array. You can use the GetLength method to get the size of one of the dimensions: