Table of Contents

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

IComparer<string>

Count

Gets the number of items in the set.

public int Count { get; }

Property Value

int

Methods

Add(string)

Adds an item to the set.

public void Add(string item)

Parameters

item string

The item to add.

Contains(string)

Checks if the set contains an item.

public bool Contains(string item)

Parameters

item string

The item to check for.

Returns

bool

true if the set contains the item, false otherwise.

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 string

The item to remove.

Returns

bool

true if the item was removed, false otherwise.