SimpleArraySubDPointer

Wrapper for a C++ ON_SimpleArray<ON_SubD*> or ON_SimpleArray<constant ON_SubD*> If you are not writing C++ code then this class is not for you.

Constructors

SimpleArraySubDPointer

#Since v7.14
public SimpleArraySubDPointer()
Initializes a new SimpleArraySubDPointer instance.

Finalizer

~SimpleArraySubDPointer

#
~SimpleArraySubDPointer()
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

Properties

Count

#Since v7.14
public int Count { get; }
Gets the amount of subds in this array.

Methods

Add

#Since v7.14
public void Add(SubD subd, bool asConst)
Adds a subd to the list.
subd (SubD)A subd to add.
asConst (bool)Whether this subd should be treated as non-modifiable.

ConstPointer

#Since v7.14
public nint ConstPointer()
Gets the constant (immutable) pointer of this array.
The constant pointer.

Dispose

#Since v7.14
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.

Dispose

#
protected virtual void Dispose(bool disposing)
disposing (bool)

NonConstPointer

#Since v7.14
public nint NonConstPointer()
Gets the non-constant pointer (for modification) of this array.
The non-constant pointer.

ToNonConstArray

#Since v7.14
public SubD[] ToNonConstArray()
Copies the unmanaged array to a managed counterpart.
The managed array.