LocationInfo.GetValue Method (Object, Object[]) |
Returns the value of the field or property represented by the current object
with optional index values for indexed properties.
Namespace: PostSharp.Reflection
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public Object GetValue( Object instance, Object[] index )
Parameters
- instance
- Type: System.Object
The object whose field or property value will be returned (null if the field or property is static). - index
- Type: System.Object[]
Optional index values for indexed properties. null for fields or non-index properties.
Return Value
Type: ObjectThe value of the field or property.