Constructor EquatableArray
EquatableArray(ImmutableArray<T>)
Initializes a new instance of the EquatableArray<T> class that wraps the specified immutable array.
Declaration
public EquatableArray(ImmutableArray<T> array)
Parameters
| Type | Name | Description |
|---|---|---|
| ImmutableArray<T> | array |
Remarks
The values in the array are assumed to be immutable and interchangeable. Equal values must stay equal and keep the same hash code indefinitely, and a value read from the array is only guaranteed to be equal to the one that was passed in, not to be the same instance.
This constructor wraps the array directly without de-duplicating it against existing instances, although the instance may still be de-duplicated later. Use the methods on EquatableArray to create de-duplicated instances.