Table of Contents

Class ImmutableEquatableSet

Namespace
PolyType.Roslyn
Assembly
PolyType.Roslyn.dll

Defines extension methods for creating ImmutableEquatableSet<T> instances.

public static class ImmutableEquatableSet
Inheritance
ImmutableEquatableSet
Inherited Members

Methods

Create<T>(ReadOnlySpan<T>)

Creates a new ImmutableEquatableSet<T> instance from the specified values.

public static ImmutableEquatableSet<T> Create<T>(ReadOnlySpan<T> values) where T : IEquatable<T>

Parameters

values ReadOnlySpan<T>

The source span with which to populate the set.

Returns

ImmutableEquatableSet<T>

A new ImmutableEquatableSet<T> instance containing the specified values.

Type Parameters

T

The element type of the set.

ToImmutableEquatableSet<T>(IEnumerable<T>)

Creates a new ImmutableEquatableSet<T> instance from the specified values.

public static ImmutableEquatableSet<T> ToImmutableEquatableSet<T>(this IEnumerable<T> values) where T : IEquatable<T>

Parameters

values IEnumerable<T>

The source enumerable with which to populate the set.

Returns

ImmutableEquatableSet<T>

A new ImmutableEquatableSet<T> instance containing the specified values.

Type Parameters

T

The element type of the set.