Click or drag to resize
SbNativeArrayTItem Property
Gets or sets the element at the specified index.

Namespace: OIV.Inventor.Generic
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
Syntax
public T this[
	int index
] { get; set; }

Parameters

index
Type: SystemInt32
The zero-based index of the element to get or set.

Return Value

Type: T
The element of type T at the specified index.
Exceptions
ExceptionCondition
InvalidOperationExceptionIf the native array is not well known.
IndexOutOfRangeExceptionIf index if out of range.
NotSupportedException If stream is closed. - or - If read/write operation are not supported.
Remarks

If you iterates thought a significant number of elements using this indexer, you may encounter performance issue if the underlying buffer is not a managed buffer (CanGetBuffer returns false).

For better performances, you can consider using the DataPointer property combined with unsafe code to access/modify the underlying native buffer.

See Also