Click or drag to resize
SETKey Methods

The SETKey generic type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds the key to this set (if it is not already present).
Public methodCeiling
Returns the smallest key in this set greater than or equal to key.
Public methodContains
Returns true if this set contains the given key.
Public methodDelete
Removes the specified key from this set (if the set contains the specified key).
Public methodEquals(Object)
Compares this set to the specified set.
(Overrides ObjectEquals(Object).)
Public methodEquals(SETKey)
Compares this set to the other set using set element comparison. This is an override of the default rererence equality comparison.
Public methodFloor
Returns the largest key in this set less than or equal to key.
Public methodGetEnumerator
Returns all of the keys in this set, as an iterator. To iterate over all of the keys in a set named set, use the foreach notation: foreach (Key key in set).
Public methodGetHashCode
This operation is not supported because sets are mutable.
(Overrides ObjectGetHashCode.)
Public methodIntersects
Returns the intersection of this set and that set.
Public methodStatic memberMainTest
Demo test the SET data type.
Public methodToString
Returns a string representation of this set.
(Overrides ObjectToString.)
Public methodUnion
Returns the union of this set and that set.
Top
See Also