Now I'm thinking about if there even is a way to find out the length besides .Length and catching OutOfRangeExceptions.
PS: I think reflection should work to to read the private length field.
Efficiency is important. Here's a better way to find the length of an array.
Now I'm thinking about if there even is a way to find out the length besides .Length and catching OutOfRangeExceptions.
PS: I think reflection should work to to read the private length field.