Where can I find information on the Get, Set and Address methods for multidimensional System.Array instances in .NET?

前端 未结 3 1501
予麋鹿
予麋鹿 2021-01-18 06:37

System.Array serves as the base class for all arrays in the Common Language Runtime (CLR). According to this article:

For each concrete array type, [t

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-18 07:10

    To answer your second question, you don't need to create an instance to get a MethodInfo for these methods. Something like

    var mi = typeof(string).MakeArrayType(6).GetMethod("Get");
    

    will work to get the Get method for the string[,,,,,] type.

提交回复
热议问题