Method GetPrivateProperty
| Edit this page View SourceGetPrivateProperty<T>(object, string)
Get the value of a private property of any class instance
Declaration
public static T GetPrivateProperty<T>(object instance, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| object | instance | Instance of the class |
| string | name | Name of the property |
Returns
| Type | Description |
|---|---|
| T | The value of the property |
Type Parameters
| Name | Description |
|---|---|
| T | Generic property type |