PropertyAccessorGet Method
The
Get(Object, Object) overload can be used for any number of index parameters.
The other non-generic overloads can be used for simple properties or indexers with one parameter.
If you know the property type at compile time, then you can use the generic
GetStaticValue
overloads for static properties. If you know also the instance type (and the index parameter for indexers), then
the
GetInstanceValue
methods can be used to access instance properties with better performance.
Get(Object) |
Gets the value of the property with no index parameters.
For static properties the instance parameter is omitted (can be ).
See the Remarks section of the Get(Object, Object) overload for details.
|
Get(Object, Object) |
Gets the value of the property with one index parameter.
For static properties the instance parameter is omitted (can be ).
See the Remarks section of the Get(Object, Object) overload for details.
|
Get(Object, Object) |
Gets the value of the property.
For static properties the instance parameter is omitted (can be ).
If the property is not an indexer, then indexParameters parameter is omitted.
|