I don\'t understand the purpose of Array.GetLowerBound().
Does it ever return non-zero? When? How?
Thanks.
There is one CreateInstance
call that sets non-zero lower bounds:
CreateInstance(Type, Int32[], Int32[])
Creates a multidimensional Array of the specified Type and dimension lengths, with the specified lower bounds.
Compare this to:
CreateInstance(Type, Int32[])
Creates a multidimensional Array of the specified Type and dimension lengths, with zero-based indexing. The dimension lengths are specified in an array of 32-bit integers.
(Or to any of the other overloads, in fact. Of the six CreateInstance
overloads, five create a zero-based array.)