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
public ClassArrayObjRef()
Initializes a new ClassArrayObjRef instance.

ClassArrayObjRef

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

ClassArrayObjRef

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

Finalizer

~ClassArrayObjRef

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

Properties

Count

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

Methods

Add

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

ConstPointer

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

Dispose

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

NonConstPointer

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

ToNonConstArray

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