Iesi.Collections
Implementation of ISet that also maintains a linked list over all elements.
Enumeration of this set is guaranteed to return the elements in the order
they were added.
Returns an enumerator that iterates through the collection.
A that can be used to iterate through the collection.
1
Returns an enumerator that iterates through a collection.
An object that can be used to iterate through the collection.
2
Adds an item to the .
The object to add to the .The is read-only.
Removes all items from the .
The is read-only.
Determines whether the contains a specific value.
true if is found in the ; otherwise, false.
The object to locate in the .
Copies the elements of the to an , starting at a particular index.
The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.The zero-based index in at which copying begins. is null. is less than 0. is multidimensional.-or-The number of elements in the source is greater than the available space from to the end of the destination .-or-Type cannot be cast automatically to the type of the destination .
Removes the first occurrence of a specific object from the .
true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original .
The object to remove from the .The is read-only.
Modifies the current set so that it contains all elements that are present in either the current set or the specified collection.
The collection to compare to the current set. is null.
Modifies the current set so that it contains only elements that are also in a specified collection.
The collection to compare to the current set. is null.
Removes all elements in the specified collection from the current set.
The collection of items to remove from the set. is null.
Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.
The collection to compare to the current set. is null.
Determines whether a set is a subset of a specified collection.
true if the current set is a subset of ; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set is a superset of a specified collection.
true if the current set is a superset of ; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set is a correct superset of a specified collection.
true if the object is a correct superset of ; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set is a proper (strict) subset of a specified collection.
true if the current set is a correct subset of ; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set overlaps with the specified collection.
true if the current set and share at least one common element; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set and the specified collection contain the same elements.
true if the current set is equal to ; otherwise, false.
The collection to compare to the current set. is null.
Adds an element to the current set and returns a value to indicate if the element was successfully added.
true if the element is added to the set; false if the element is already in the set.
The element to add to the set.
Count the elements in the given collection and determine both the total
count and how many of the elements that are present in the current set.
Cast the given collection to an ISet<T> if possible. If not,
return a new set containing the items.
Unlink a node from the linked list by updating the node pointers in
its preceeding and subsequent node. Also update the _first and _last
pointers if necessary.
Gets the number of elements contained in the .
The number of elements contained in the .
Gets a value indicating whether the is read-only.
true if the is read-only; otherwise, false.
Implements a read-only Set wrapper.
Although this is advertised as immutable, it really isn't. Anyone with access to the
wrapped set can still change the set.
Constructs an immutable (read-only) Set wrapper.
The Set that is wrapped.
Returns an enumerator that iterates through a collection.
An object that can be used to iterate through the collection.
2
Returns an enumerator that iterates through the collection.
A that can be used to iterate through the collection.
1
Adds an item to the .
The object to add to the .
is always thrown
Removes all items from the .
is always thrown
Determines whether the contains a specific value.
true if is found in the ; otherwise, false.
The object to locate in the .
Copies the elements of the to an , starting at a particular index.
The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.The zero-based index in at which copying begins. is null. is less than 0. is multidimensional.-or-The number of elements in the source is greater than the available space from to the end of the destination .-or-Type cannot be cast automatically to the type of the destination .
Removes the first occurrence of a specific object from the .
true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original .
The object to remove from the .
is always thrown
Adds an element to the current set and returns a value to indicate if the element was successfully added.
true if the element is added to the set; false if the element is already in the set.
The element to add to the set.
is always thrown
Modifies the current set so that it contains all elements that are present in both the current set and in the specified collection.
The collection to compare to the current set. is null. is always thrown
Modifies the current set so that it contains only elements that are also in a specified collection.
The collection to compare to the current set. is null. is always thrown
Removes all elements in the specified collection from the current set.
The collection of items to remove from the set. is null. is always thrown
Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.
The collection to compare to the current set. is null. is always thrown
Determines whether a set is a subset of a specified collection.
true if the current set is a subset of ; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set is a superset of a specified collection.
true if the current set is a superset of ; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set is a correct superset of a specified collection.
true if the object is a correct superset of ; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set is a property (strict) subset of a specified collection.
true if the current set is a correct subset of ; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set overlaps with the specified collection.
true if the current set and share at least one common element; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set and the specified collection contain the same elements.
true if the current set is equal to ; otherwise, false.
The collection to compare to the current set. is null.
Gets the number of elements contained in the .
The number of elements contained in the .
Gets a value indicating whether the is read-only.
True.
Implements a thread-safe Set wrapper. The implementation is extremely conservative,
serializing critical sections to prevent possible deadlocks, and locking on everything.
The one exception is for enumeration, which is inherently not thread-safe. For this, you
have to lock the SyncRoot object for the duration of the enumeration.
Constructs a thread-safe ISet wrapper.
The Set object that this object will wrap.
Adds an item to the .
The object to add to the .The is read-only.
Removes all items from the .
The is read-only.
Determines whether the contains a specific value.
true if is found in the ; otherwise, false.
The object to locate in the .
Copies the elements of the to an , starting at a particular index.
The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.The zero-based index in at which copying begins. is null. is less than 0. is multidimensional.-or-The number of elements in the source is greater than the available space from to the end of the destination .-or-Type cannot be cast automatically to the type of the destination .
Removes the first occurrence of a specific object from the .
true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original .
The object to remove from the .The is read-only.
Modifies the current set so that it contains all elements that are present in either the current set or in the specified collection.
The collection to compare to the current set. is null.
Modifies the current set so that it contains only elements that are also in a specified collection.
The collection to compare to the current set. is null.
Removes all elements in the specified collection from the current set.
The collection of items to remove from the set. is null.
Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.
The collection to compare to the current set. is null.
Determines whether a set is a subset of a specified collection.
true if the current set is a subset of ; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set is a superset of a specified collection.
true if the current set is a superset of ; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set is a correct superset of a specified collection.
true if the object is a correct superset of ; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set is a property (strict) subset of a specified collection.
true if the current set is a correct subset of ; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set overlaps with the specified collection.
true if the current set and share at least one common element; otherwise, false.
The collection to compare to the current set. is null.
Determines whether the current set and the specified collection contain the same elements.
true if the current set is equal to ; otherwise, false.
The collection to compare to the current set. is null.
Adds an element to the current set and returns a value to indicate if the element was successfully added.
true if the element is added to the set; false if the element is already in the set.
The element to add to the set.
Returns an enumerator that iterates through a collection. Enumeration is inherently not
thread-safe. Use a lock on the SyncRoot to synchronize the entire enumeration process.
An object that can be used to iterate through the collection.
2
Returns an enumerator that iterates through the collection. Enumeration is inherently not
thread-safe. Use a lock on the SyncRoot to synchronize the entire enumeration process.
A that can be used to iterate through the collection.
1
Gets the number of elements contained in the .
The number of elements contained in the .
Gets a value indicating whether the is read-only.
true if the is read-only; otherwise, false.