SimpleArrayGeometryPointer
Wrapper for a C++ ON_SimpleArray<ON_Geometry*>* or ON_SimpleArray<constant ON_Geometry*>. If you are not writing C++ code, then this class is not for you.
Constructors
public SimpleArrayGeometryPointer()
Initializes a new SimpleArrayGeometryPointer instance.
Expects all of the items in the IEnumerable to be GeometryBase types
Parameters:
| geometry (IEnumerable) |
Create an ON_SimpleArray<ON_Geometry*> filled with items in geometry
Parameters:
| geometry (IEnumerable<GeometryBase>) |
Finalizer
~SimpleArrayGeometryPointer
#~SimpleArrayGeometryPointer()
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
Properties
Methods
public nint ConstPointer()
Gets the constant (immutable) pointer of this array.
Returns: The constant pointer.
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.
Dispose
#For derived class implementers.
This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.
You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.
Also, you must call the base virtual method within your overriding method.
Parameters:
| disposing (bool) | true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer. |
public nint NonConstPointer()
Gets the non-constant pointer (for modification) of this array.
Returns: The non-constant pointer.
Copies the unmanaged array to a managed counterpart.
Returns: The managed array.