# ClassArrayOnObjRef class

Namespace: [Rhino.Runtime.InteropWrappers](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.runtime.interopwrappers.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
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](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.classarrayonobjref/ctor.md): (2 overloads) Initializes a new [ClassArrayOnObjRef](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.classarrayonobjref.md) instance.

## Finalizer

- [~ClassArrayOnObjRef](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.classarrayonobjref/finalize.md): Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

## Properties

- [Count](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.classarrayonobjref/count.md): Gets the number of ObjRef instances in this array.

## Methods

- [Add](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.classarrayonobjref/add.md): Adds an ObjRef to the list.
- [ConstPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.classarrayonobjref/constpointer.md): Gets the constant (immutable) pointer of this array.
- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.classarrayonobjref/dispose.md): Actively reclaims unmanaged resources that this instance uses.
- [NonConstPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.classarrayonobjref/nonconstpointer.md): Gets the non-constant pointer (for modification) of this array.
- [ToNonConstArray](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.classarrayonobjref/tononconstarray.md): (2 overloads) Copies the unmanaged array to a managed counterpart.
