Click or drag to resize

StringHolder Class

This class is used to pass strings back and forth between managed and unmanaged code. This should not be needed by plug-ins.

If you are just dealing with an ON_wString*, use StringWrapper

Inheritance Hierarchy
SystemObject
  Rhino.Runtime.InteropWrappersStringHolder

Namespace:  Rhino.Runtime.InteropWrappers
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public class StringHolder : IDisposable

The StringHolder type exposes the following members.

Constructors
  NameDescription
Public methodStringHolder
Constructor
Top
Methods
  NameDescription
Public methodConstPointer
C++ pointer used to access the ON_wString, managed plug-ins should never need this.
Public methodDispose
IDispose implementation
Protected methodDispose(Boolean)
Called by Dispose and finalizer
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Destructor
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetString
Gets managed string from unmanaged ON_wString pointer.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNonConstPointer
C++ pointer used to access the ON_wString, managed plug-ins should never need this.
Public methodToString
Marshals unmanaged ON_wString to a managed .NET string
(Overrides ObjectToString.)
Public methodToStringSafe
Marshals unmanaged ON_wString to a managed .NET string and never returns null.
Top
See Also