commandlineparser / commandlineparser/commandline

IReadOnlyList<T> for options list

Open
#668 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

I'd like to suggest list options support more than just `IEnumerable` properties. `IEnumerable` is not a great choice for list properties because it hides information about the underlying collection (order, count).

Adding support for `IReadOnlyList` would be very helpful because it is both ordered (supports an indexer), and has a count. Support for arrays, `ICollection`, `List`, `IList`, `IReadOnlyCollection` are also things that could be considered.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.