You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
nnikolopoulos
changed the title
What about "static T GetValidElement<T>(this IList<T> array, int index)" instead of "static T GetElementOrDefault<T>(this ICollection<T> array, int index)"
What about "static T GetValidElement<T>(this IList<T> array, int index)" instead of "static T GetElementOrDefault<T>(this ICollection<T> array, int index)"?
Oct 5, 2022
dcolleoni
changed the title
What about "static T GetValidElement<T>(this IList<T> array, int index)" instead of "static T GetElementOrDefault<T>(this ICollection<T> array, int index)"?
Refactor GetElementOrDefault
Nov 15, 2022
suggestion:
static T GetValidElement(this IList array, int index)
replacing
static T GetElementOrDefault(this ICollection array, int index)
Because the default(T) is something else than the first/last element.
What about "static T GetValidElement(this IList array, int index)"?
Originally posted by @sbusato in #33 (comment)
The text was updated successfully, but these errors were encountered: