RE: Efficiency is important. Here's a better way to find the length of an array.

You are viewing a single comment's thread from:

Efficiency is important. Here's a better way to find the length of an array.

in humor •  7 years ago 

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.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!