Post.GetValue<T> Method |
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.
Namespace: PostSharp
Assembly: PostSharp (in PostSharp.dll) Version: 6.9.11.0 (6.9.11.0)
C#
public static T GetValue<T>( T value ) where T : struct, new()
Parameters
- value
- Type: T
Value.
Type Parameters
- T
- Type of the value to retrieve (this type parameter can generally be omitted).
Return Value
Type: Tvalue, exactly.