PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp Namespace / Post Class / Post Methods / Post.​Get­Mutable­Ref(T) Method

Post.GetMutableRef<T> Method

Gets a mutable reference from a read-only in reference. Calls to this method are replaced at build time.

Namespace:  PostSharp
Assembly:  PostSharp (in PostSharp.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public static ref T GetMutableRef<T>(
	 in T reference
)

Parameters

reference
Type: T
A read-only reference.

Type Parameters

T
Reference type.

Return Value

Type: T
Exactly reference.
See Also