Class StringSetWithTertiarySearchTree
- Namespace
- AlgorithmsSW.String
- Assembly
- AlgorithmsSW.dll
[ExerciseReference(5, 2, 6)]
public class StringSetWithTertiarySearchTree : ISet<string>, IEnumerable<string>, IEnumerable
- Inheritance
-
StringSetWithTertiarySearchTree
- Implements
- Inherited Members
- Extension Methods
Properties
Comparer
Gets the comparer used to compare items.
public IComparer<string> Comparer { get; }
Property Value
Count
Gets the number of items in the set.
public int Count { get; }
Property Value
Methods
Add(string)
Adds an item to the set.
public void Add(string item)
Parameters
item
stringThe item to add.
Contains(string)
Checks if the set contains an item.
public bool Contains(string item)
Parameters
item
stringThe item to check for.
Returns
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<string> GetEnumerator()
Returns
- IEnumerator<string>
An enumerator that can be used to iterate through the collection.
Remove(string)
Removes an item from the set.
public bool Remove(string item)
Parameters
item
stringThe item to remove.