PostSharpAPI ReferencePost­Sharp.​Patterns.​FormattersUnsafe­StringMake­Immutable
Open sandboxFocus

UnsafeString.MakeImmutable Method


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 void MakeImmutable()