Method TryGetProperty
TryGetProperty<T>(String, out T)
Gets the value of a named property for the current UnknownObjectAccessor.
Declaration
public bool TryGetProperty<T>(string name, out T value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Property name. |
T | value | Returns the property value if a property named |
Returns
Type | Description |
---|---|
System.Boolean |
|
Type Parameters
Name | Description |
---|---|
T | Type of the property value. |
TryGetProperty<T>(Object, String, out T)
Gets the value of a named property for an arbitrary object.
Declaration
public static bool TryGetProperty<T>(object instance, string name, out T value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | instance | The object whose property has to be returned. |
System.String | name | Property name. |
T | value | Returns the property value if a property named |
Returns
Type | Description |
---|---|
System.Boolean |
|
Type Parameters
Name | Description |
---|---|
T | Type of the property value. |