StringWrapper

public class StringWrapper : IDisposable
Represents a wrapper to an unmanaged OpenNurbs string.

Wraps a C++ ON_wString*.

Constructors

StringWrapper

#Since v5.0
Initializes a new empty unmanaged string (ON_wString*).
public StringWrapper()

StringWrapper

#Since v5.0
Initializes a new unmanaged string with an initial value. The string s can be null.
public StringWrapper(
s
The initial value, or null.
)

Finalizer

~StringWrapper

#
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
~StringWrapper()

Properties

ConstPointer

#Since v5.0
Gets the constant pointer (constant ON_wString*).
public nint ConstPointer { get; }
The constant pointer.

NonConstPointer

#Since v5.0
Gets the non-constant pointer (ON_wString*).
public nint NonConstPointer { get; }
The non-constant pointer.

Methods

Dispose

#Since v5.0
Actively reclaims unmanaged resources that this instance uses.
public void Dispose()

GetStringFromPointer

#Since v5.0
Get string from an ON_wString*
public static string GetStringFromPointer(
nint
pConstON_wString
)

SetString

#Since v5.0
Set contents of this string.
public void SetString(
s
The new string.
)

SetStringOnPointer

#Since v5.0
Set contents of an ON_wString*
public static void SetStringOnPointer(
nint
pON_wString,
s
)

ToString

#
Returns the string contents of this wrapper.
public override string ToString()
A managed string.
Object.ToString