Constructor EquatableArray
EquatableArray(ImmutableArray<T>)
Initializes a new instance of the EquatableArray<T> class from the given immutable array.
Declaration
public EquatableArray(ImmutableArray<T> array)
Parameters
| Type | Name | Description |
|---|---|---|
| ImmutableArray<T> | array |
Remarks
Note: values of the array are assumed to be immutable and interchangeable (that is, the standard equality and hash code contracts must be held, but also must be consistent indefinitely, and the value you read out of the array is only guaranteed to be equal to the one passed in, not necessarily the same instance or bits). Note: this constructor does not de-duplicate against existing instances when created (however, it can still later) - it is a quick constructor that just copies the provided value directly, other than ensuring non-null - use methods on EquatableArray to get de-duplication.