ClassArrayObjRef

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

Wrapper for a C++ ON_ClassArray of CRhinoObjRef

Constructors

ClassArrayObjRef

#Since v5.0
Initializes a new ClassArrayObjRef instance.
public ClassArrayObjRef()

ClassArrayObjRef

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

ClassArrayObjRef

#Since v8.0
Construct from a pointer
public ClassArrayObjRef(
nint
ptr,
deleteOnDispose = true
)

Finalizer

~ClassArrayObjRef

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

Properties

Count

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

Methods

Add

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

ConstPointer

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

Dispose

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

NonConstPointer

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

ToNonConstArray

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