Class ImmutableEquatableSet
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
valuesReadOnlySpan<T>The source span with which to populate the set.
Returns
- ImmutableEquatableSet<T>
A new ImmutableEquatableSet<T> instance containing the specified values.
Type Parameters
TThe 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
valuesIEnumerable<T>The source enumerable with which to populate the set.
Returns
- ImmutableEquatableSet<T>
A new ImmutableEquatableSet<T> instance containing the specified values.
Type Parameters
TThe element type of the set.