Table of Contents

Interface ISet<T>

Namespace
AlgorithmsSW.Set
Assembly
AlgorithmsSW.dll

This is a test. A link to

  • @ISet{T}
  • @ISet`1
  • @ISet\`1
  • ISet
public interface ISet<T> : IEnumerable<T>, IEnumerable

Type Parameters

T

The type of the items in the set.

Inherited Members
Extension Methods

Properties

Comparer

Gets the comparer used to compare items.

IComparer<T> Comparer { get; }

Property Value

IComparer<T>

Count

Gets the number of items in the set.

int Count { get; }

Property Value

int

Methods

Add(T)

Adds an item to the set.

void Add(T item)

Parameters

item T

The item to add.

Contains(T)

Checks if the set contains an item.

bool Contains(T item)

Parameters

item T

The item to check for.

Returns

bool

true if the set contains the item, false otherwise.

Remove(T)

Removes an item from the set.

bool Remove(T item)

Parameters

item T

The item to remove.

Returns

bool

true if the item was removed, false otherwise.