假设我有一个
我有以下两个变量:
我如何使用
ICollection<SomeClass>
。我有以下两个变量:
SomeClass old;
SomeClass new;
我如何使用
ICollection<SomeClass>
实现以下内容?// old is guaranteed to be inside collection
collection.Replace(old, new);
ICollection<T>
的实现? - stuartdICollection
接口进行操作。 - Matias CiceroHashSet<SomeClass>
。 - Matias Cicero