Vector<T>.EnsureWritable Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

EnsureWritable() Ensures that every element in the vector can be written to.
EnsureWritable(Int32) Ensures that the element at the specified index in the vector can be written to.
EnsureWritable(Range) Ensures that the element at the specified index in the vector can be written to.
EnsureWritable(Int32, Int32) Ensures that the element at the specified index in the vector can be written to.

EnsureWritable

Ensures that every element in the vector can be written to.
C#
public void EnsureWritable()

Return Value

true if the operation succeeded; otherwise false.

Exceptions

ComponentReadOnlyException

One or more of the selected elements of the vector is read-only.

EnsureWritable(Int32)

Ensures that the element at the specified index in the vector can be written to.
C#
public void EnsureWritable(
	int index
)

Parameters

index  Int32
 

Exceptions

ComponentReadOnlyException

The selected element of the vector is read-only.

EnsureWritable(Range)

Ensures that the element at the specified index in the vector can be written to.
C#
public void EnsureWritable(
	Range range
)

Parameters

range  Range
 

Exceptions

ComponentReadOnlyException

One or more of the selected elements of the vector is read-only.

EnsureWritable(Int32, Int32)

Ensures that the element at the specified index in the vector can be written to.
C#
public void EnsureWritable(
	int startIndex,
	int endIndex
)

Parameters

startIndex  Int32
 
endIndex  Int32
 

Exceptions

ComponentReadOnlyException

One or more of the selected elements of the vector is read-only.

See Also