gpt4 book ai didi

c# - 是否可以将 GroupCollection 转换为 List 或 IEnumerable?

转载 作者:可可西里 更新时间:2023-11-01 03:14:37 25 4
gpt4 key购买 nike

是否可以将 GroupCollection 转换为 ListIEnumerable?我指的是正则表达式中的 GroupCollection

最佳答案

当然

GroupCollection col = ...;
IEnumerable<Group> enumerable = col.Cast<Group>();
List<Group> list = col.Cast<Group>().ToList();

关于c# - 是否可以将 GroupCollection 转换为 List 或 IEnumerable?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2464668/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com