Why does ImmutableList throw IndexOutOfRangeException instead of ArgumentOutOfRangeException when getting the element of the set at the given index? #108366
Replies: 3 comments 2 replies
-
Tagging subscribers to this area: @dotnet/area-system-collections |
Beta Was this translation helpful? Give feedback.
-
It's probably for consistency with |
Beta Was this translation helpful? Give feedback.
-
I can't understand how using I spent more time looking at this and now think |
Beta Was this translation helpful? Give feedback.
-
Why does ImmutableList throw IndexOutOfRangeException instead of ArgumentOutOfRangeException when getting the element of the set at the given index, but List throws an ArgumentOutOfRangeException exception?
ImmutableList
List
Beta Was this translation helpful? Give feedback.
All reactions