PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp Namespace / Post Class / Post Methods

Post Methods

The Post type exposes the following members.

Public methodStatic memberCast<TSource, TTarget>
At post-compile time, casts an instance of a type into another. A post-compile time error is reported if the source type cannot be assigned to the target type.
Public methodStatic memberGetMutableRef<T>
Gets a mutable reference from a read-only in reference. Calls to this method are replaced at build time.
Public methodStatic memberGetValue<T>
When used to retrieve the value of a field, forces the compiler to retrieve a copy of the field value instead of an address to this field. This allows to call instance methods of value-type fields without loading the field address.
See Also