Skip to content

Refactor GetElementOrDefaultΒ #35

@nnikolopoulos

Description

@nnikolopoulos

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)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

Status

βœ… Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions