Interface IGetsValueFromObject
An object which traverses a specified object to get a value of a specified name.
Namespace: ZptSharp.Expressions.PathExpressions
Assembly: ZptSharp.dll
Syntax
public interface IGetsValueFromObject
Methods
| Improve this Doc View SourceTryGetValueAsync(String, Object, CancellationToken)
Attempts to get a value for a named reference, from the specified object.
Declaration
Task<GetValueResult> TryGetValueAsync(string name, object object, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The value name. |
System. |
object | The object from which to retrieve the value. |
System. |
cancellationToken | An optional cancellation token. |
Returns
Type | Description |
---|---|
System. |
An object indicating whether a value was successfully retrieved or not, along with the retrieved value (if applicable). |