What is the safe method to access an array element, without throwing IndexOutOfRangeException, something like TryParse, TryRead, using extension methods or LINQ?
What is the safe method to access an array element, without throwing IndexOutOfRangeException ,
Share
You could use the following extension method.
Example: