#unity/日常积累 ## 定义 命名空间: [System.Collections.Generic](https://learn.microsoft.com/zh-cn/dotnet/api/system.collections.generic?view=net-8.0) 程序集: System.Runtime.dll 定义操作泛型集合的方法。 ``` cs public interface ICollection : System.Collections.Generic.IEnumerable ``` #### 类型参数 T 集合中元素的类型。 派生 [Microsoft.Extensions.DependencyInjection.IServiceCollection](https://learn.microsoft.com/zh-cn/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection?view=net-8.0) [Microsoft.Extensions.Primitives.StringValues](https://learn.microsoft.com/zh-cn/dotnet/api/microsoft.extensions.primitives.stringvalues?view=net-8.0) [System.Activities.Hosting.SymbolResolver](https://learn.microsoft.com/zh-cn/dotnet/api/system.activities.hosting.symbolresolver?view=net-8.0) [System.Activities.Presentation.Model.ModelItemCollection](https://learn.microsoft.com/zh-cn/dotnet/api/system.activities.presentation.model.modelitemcollection?view=net-8.0) [更多…](https://learn.microsoft.com/zh-cn/dotnet/api/system.collections.generic.icollection-1?view=net-8.0# "显示所有派生类")