ClassArrayOnObjRef

public sealed class ClassArrayOnObjRef : IDisposable
Represents a wrapper to an unmanaged "array" (list) of ON_ObjRef instances.

Wrapper for a C++ ON_ClassArray of ON_ObjRef

Constructors

ClassArrayOnObjRef

#Since v5.8
Initializes a new ClassArrayOnObjRef instance.
public ClassArrayOnObjRef()

ClassArrayOnObjRef

#Since v5.8
Initializes a new instances from a set of ObjRefs
public ClassArrayOnObjRef(
objrefs
An array, a list or any enumerable set of Rhino object references.
)

Finalizer

~ClassArrayOnObjRef

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

Properties

Count

#Since v5.8
Gets the number of ObjRef instances in this array.
public int Count { get; }

Methods

Add

#Since v5.8
Adds an ObjRef to the list.
public void Add(
objref
An ObjRef to add.
)

ConstPointer

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

Dispose

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

NonConstPointer

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

ToNonConstArray

#Since v5.8
Copies the unmanaged array to a managed counterpart.
public ObjRef[] ToNonConstArray()
The managed array.

ToNonConstArray

#Since v7.6
Copies the unmanaged array to a managed counterpart.
public ObjRef[] ToNonConstArray(
doc
Document containing the array of objects
)
The managed array.