commandlineparser / commandlineparser/commandline

IReadOnlyList<T> for options list

未关闭
#668 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位 IEnumerable 的选项属性处理逻辑,并跟踪列表值的解析方式。将所请求的 IReadOnlyList 行为与数组、ICollection、List、IList 和 IReadOnlyCollection 进行比较。当受支持的集合类型具备明确定义且一致的选项行为,并覆盖所请求的情况时,工作即完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
cli
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。