[API Proposal]: Add bool TryGetElementAt<T>(this IEnumerable<T>, out T element)
#110338
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
needs-area-label
An area label is needed to ensure this gets routed to the appropriate area owners
Background and motivation
This as opposed to checking for bounds each time performing an unguaranteed random access.
Note this could help with any enumerables e.g. arrays, list, so there could be more optimized overloads available.
API Proposal
API Usage
Alternative Designs
No response
Risks
No response
The text was updated successfully, but these errors were encountered: