Safely returns a value if GetValue succeeded, otherwise it returns null.
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public static Object TryGetValue( PropertyInfo property, Object value, Object[] index ) |
Visual Basic |
---|
Public Shared Function TryGetValue ( property As PropertyInfo, value As Object, index As Object() ) As Object |
Parameters
- property
- Type: System.Reflection..::..PropertyInfo
The Source Property
- value
- Type: System..::..Object
The object whose property value will be returned.
- index
- Type: array<System..::..Object>[]()[][]
Optional index values for indexed properties. This value should be null for non-indexed properties.