commandlineparser / commandlineparser/commandline
IReadOnlyList<T> for options list
- 主要語言
- C#
- 星號
- 4.8k
- 分支
- 478
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Start by locating the option-property handling for IEnumerable and trace how list values are parsed. Compare the requested IReadOnlyList behavior with arrays, ICollection, List, IList, and IReadOnlyCollection. The work is done when the supported collection types have defined, consistent option behavior and coverage for the requested cases.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100