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)
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)