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

Represents a wrapper to an unmanaged OpenNurbs string.

Wraps a C++ ON_wString*.

## Constructors

- [StringWrapper](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stringwrapper/ctor.md): (2 overloads) Initializes a new empty unmanaged string (ON_wString*).

## Finalizer

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

## Properties

- [ConstPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stringwrapper/constpointer.md): Gets the constant pointer (constant ON_wString*).
- [NonConstPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stringwrapper/nonconstpointer.md): Gets the non-constant pointer (ON_wString*).

## Methods

- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stringwrapper/dispose.md): Actively reclaims unmanaged resources that this instance uses.
- [GetStringFromPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stringwrapper/getstringfrompointer.md): (static) Get string from an ON_wString*
- [SetString](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stringwrapper/setstring.md): Set contents of this string.
- [SetStringOnPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stringwrapper/setstringonpointer.md): (static) Set contents of an ON_wString*
- [ToString](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stringwrapper/tostring.md): Returns the string contents of this wrapper.
