A generalized representation of a string that can be either backed by a system String,
char, or an UnsafeStringBuilder. Conversions between these types happen transparently
and are cached.
public sealed class UnsafeString : Object
Initializes a new UnsafeString backed by an array of Char.
Initializes a new UnsafeString backed by a String.
Gets an unmanaged pointer to the string.
Determines whether the current UnsafeString is immutable
or, when the value of this property is
Gets the number of characters in the string.
If the current UnsafeString is bound to its origin UnsafeStringBuilder, evaluates the UnsafeStringBuilder and breaks the binding, so that later changes in the UnsafeStringBuilder do not cause changes in the current UnsafeString. This method also prevents the UnsafeString form being recycled.
Gets an ArraySegment<T> representing the current UnsafeString.
Returns a string that represents the current object.