指不可改变的集合。虽然有Add 和Remove方法,但是返回的是创建的副本 ,本集合并没改变。
HashSet<int> oddNumbers = new HashSet<int>(); oddNumbers.Add(3); //一个元素 ImmutableHashSet<int> vs = oddNumbers.ToImmutableHashSet<int>(); //vs1返回的是一个副本两个元素,vs还是一个元素 ImmutableHashSet<int> vs1 = vs.Add(4);
相关推荐
Kotlin的不可变集合接口和实现原型。
kotlinx.collections.immutable, Kotlin的不可变集合 Prototype Kotlin的不可变集合库 Kotlin的不可变集合接口和实现 Prototype 。有关详细信息,请参阅建议列表。Prototype实现基于 pcollections ( 版权 2015的作者...
System.Collections导图,不含泛型(泛型与非泛型基本一致)
列举系统中的环境变量,listView1,System.Collections.DictionaryEntry EnValue in Environment.GetEnvironmentVariables()C#源代码 用VisualStudio2008创建
泛型接口的实现与非泛型接口的实现的方式相似,免费下载,欢迎支持,正在做 C# 的各集合类型的内部实现,你的支持是我的动力, 谢谢
— System.Collections.ArrayList:数组集合类,使用大小可按动态增加的数组实现Ilist接口。 — System.Collections.BitArray:布尔集合类,管理位值的压缩数组,该值为布尔值。 — System.Collections.Queue:队列...
kotlinx.collections.immutable:Kotlin的不可变持久集合
Immutable Collections Library for Kotlin Immutable collection interfaces and implementation prototypes for Kotlin. For further details see the proposal. Prototype implementation is based on ...
NHibernate3.2及Iesi.Collections等的dll文件
dotnet 非泛型 类型 System.Collections.IEnumerable 不能与类型实参一起使用如果在开发的时候遇到非泛型 类型“IEnumer
此仓库托管有关System.Collections.Immutable的F#使用的观点 基准测试表明,有时System.Collections.Immutable数据结构可能比FSharp.Core中实现的数据结构更快。 该库试图提供与标准集合相同的API( IM前缀除外)...
Java.Generics.and.Collections.Oct.2006.pdf 完美清晰正版
org.apache.commons.collections-3.2.1.jar
Iesi.Collections.dll
jar包,官方版本,自测可用
该文件里包含两个.jar包: collections-generic-4.01.jar和looks-2.1.4.jar, 引入collections-generic-4.01.jar: 右击工程--》Build path ——》Add External JAR-->选中collections-generic-4.01.jar --》OK 在源...
iesi.collections.dll