GetLowerBound()有什么用?

Whats the use of GetLowerBound()?

数组的下限在 VB.net 中始终为零,即使第一个元素设置为 Nothing。那么为什么我们需要使用GetLowerBound(dimension)来获取特定维度的数组第一个元素的索引呢?

根据此处找到的文档: https://docs.microsoft.com/en-us/dotnet/api/system.array.getlowerbound?view=net-6.0

可以有不以索引 0 开头的数组:

Note that, although most arrays in .NET are zero-based (that is, the GetLowerBound method returns zero for each dimension of an array), .NET does support arrays that are not zero-based. Such arrays can be created with the CreateInstance(Type, Int32[], Int32[]) method, and can also be returned from unmanaged code.