PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Formatters Namespace / Unsafe­String Class / Unsafe­String Methods

UnsafeString Methods

The UnsafeString type exposes the following members.

Public methodMakeImmutable
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.
Public methodToCharArray
Gets an ArraySegment<T> representing the current UnsafeString.
Public methodToString
Returns a string that represents the current object.
(Overrides Object.ToString().)
See Also