DictionarySet is an abstract class that supports the creation of new Set types where the underlying data store is an IDictionary instance.
You can use any object that implements the IDictionary interface to hold set data. You can define your own, or you can use one of the objects provided in the Framework. The type of IDictionary you choose will affect both the performance and the behavior of the Set using it.
To make a Set typed based on your own IDictionary, simply derive a new class with a constructor that takes no parameters. Some Set implmentations cannot be defined with a default constructor. If this is the case for your class, you will need to override Clone() as well.
It is also standard practice that at least one of your constructors takes an ICollection or an ISet as an argument.
Assembly: Iesi.Collections (in Iesi.Collections.dll) Version: 1.0.1.0 (3.2.0.4000)
Syntax
C# |
---|
[SerializableAttribute] public abstract class DictionarySet : Set |
Visual Basic |
---|
<SerializableAttribute> _ Public MustInherit Class DictionarySet _ Inherits Set |
Visual C++ |
---|
[SerializableAttribute] public ref class DictionarySet abstract : public Set |
Inheritance Hierarchy
Iesi.Collections..::..Set
Iesi.Collections..::..DictionarySet
Iesi.Collections..::..HashedSet
Iesi.Collections..::..HybridSet
Iesi.Collections..::..ListSet
Iesi.Collections..::..SortedSet