Vector<T>.Protect Method

Returns a read-only copy of the vector.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public Vector<T> Protect(
	ArrayMutability mutability = ArrayMutability.Immutable
)

Parameters

mutability  ArrayMutability  (Optional)
The desired degree of mutability of the result.

Return Value

Vector<T>
A reference to the new vector. If the vector is already immutable, the same instance is returned.

See Also