# ClassArrayObjRef 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 ClassArrayObjRef : IDisposable
```

Represents a wrapper to an unmanaged "array" (list) of CRhinoObjRef instances.

Wrapper for a C++ ON_ClassArray of CRhinoObjRef

## Constructors

- [ClassArrayObjRef](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.classarrayobjref/ctor.md): (3 overloads) Initializes a new [ClassArrayObjRef](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.classarrayobjref.md) instance.

## Finalizer

- [~ClassArrayObjRef](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.classarrayobjref/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.classarrayobjref/count.md): Gets the number of CRhinoObjRef instances in this array.

## Methods

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