StringHolder

public class StringHolder : IDisposable
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

Constructors

StringHolder

#Since v5.8
public StringHolder()
Constructor

Finalizer

~StringHolder

#
~StringHolder()
Destructor

Methods

ConstPointer

#Since v5.8
public nint ConstPointer()
C++ pointer used to access the ON_wString, managed plug-ins should never need this.

Dispose

#Since v5.8
public void Dispose()
IDispose implementation

Dispose

#
protected virtual void Dispose(bool disposing)
Called by Dispose and finalizer
disposing (bool)

GetString

#Since v5.8
public static string GetString(nint pStringHolder)
Gets managed string from unmanaged ON_wString pointer.
pStringHolder (nint)
Null if pStringHolder has no reference, otherwise, the string. This may be an empty string, if setting an empty string is possible.

NonConstPointer

#Since v5.8
public nint NonConstPointer()
C++ pointer used to access the ON_wString, managed plug-ins should never need this.

ToString

#
public override string ToString()
Marshals unmanaged ON_wString to a managed .NET string
Object.ToString

ToStringSafe

#Since v8.0
public string ToStringSafe()
Marshals unmanaged ON_wString to a managed .NET string and never returns null.