Method AccessInternalField
AccessInternalField<T>(Type, object, string)
Cheater extension to access internal field of an object
Declaration
public static T AccessInternalField<T>(this Type type, object obj, string memberName)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type of the field |
| object | obj | The object to access |
| string | memberName | The string name of the field to access |
Returns
| Type | Description |
|---|---|
| T | The value of the field in the objects |
Type Parameters
| Name | Description |
|---|---|
| T |