List Vector<T>.Try Ensure Writable Unchecked Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
Overload List
| Try | Ensures that the element at the specified index in the vector can be written to. |
| Try | Ensures that the elements at and between the specified indexes in the vector can be written to. |
TryEnsureWritableUnchecked(Int32)
Ensures that the element at the specified index in the vector can be written to.
public override bool TryEnsureWritableUnchecked(
int index
)Parameters
- index Int32
Return Value
Booleantrue if the operation succeeded; otherwise false.
Remarks
The index is assumed valid and is not bounds-checked. Invalid
input has unspecified behavior.
TryEnsureWritableUnchecked(Int32, Int32)
Ensures that the elements at and between the specified indexes in the vector can be written to.
public override bool TryEnsureWritableUnchecked(
int startIndex,
int endIndex
)Parameters
- startIndex Int32
- The index of the first element to prepare.
- endIndex Int32
- The index of the last element to prepare. This element is included.
Return Value
Booleantrue if the operation succeeded; otherwise false.
Remarks
The endpoints are assumed valid and are not validated. Invalid
input has unspecified behavior. A writable empty range succeeds without
detaching storage; a read-only empty range remains nonwritable.