GetValue<T>(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 of this field. This allows calling instance methods of value-type fields without loading the field address.
Declaration
public static T GetValue<T>(T value) where T : structParameters
| Type | Name | Description |
|---|---|---|
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| T |
|
Type Parameters
| Name | Description |
|---|---|
| T | The type of the value to retrieve. This type parameter can generally be omitted. |