PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Formatters Namespace/Unsafe­String Class/Unsafe­String Methods/Unsafe­String.​Make­Immutable Method

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.

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.6.10.0 (6.6.10.0)
Syntax
C#
public void MakeImmutable()
See Also