Show / Hide Table of Contents

Class PathWalkingExpressionEvaluator

An implementation of IWalksAndEvaluatesPathExpression which walks each part of the path in sequence, using the specified context as a basis. At each step during traversal, an IGetsValueFromObject is used to get the actual traversed value.

Inheritance
System.Object
PathWalkingExpressionEvaluator
Implements
IWalksAndEvaluatesPathExpression
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Expressions.PathExpressions
Assembly: ZptSharp.dll
Syntax
public class PathWalkingExpressionEvaluator : IWalksAndEvaluatesPathExpression

Constructors

| Improve this Doc View Source

PathWalkingExpressionEvaluator(IGetsValueFromObject)

Initializes a new instance of the PathWalkingExpressionEvaluator class.

Declaration
public PathWalkingExpressionEvaluator(IGetsValueFromObject objectValueProvider)
Parameters
Type Name Description
IGetsValueFromObject objectValueProvider

Object value provider.

Methods

| Improve this Doc View Source

WalkAndEvaluatePathExpressionAsync(PathExpression.AlternateExpression, PathEvaluationContext, CancellationToken)

Walks the specified path using the specified context and gets a result.

Declaration
public Task<object> WalkAndEvaluatePathExpressionAsync(PathExpression.AlternateExpression path, PathEvaluationContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
PathExpression.AlternateExpression path

The path the walk/traverse.

PathEvaluationContext context

A path evaluation context.

System.Threading.CancellationToken cancellationToken

Cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<System.Object>

The evaluation result from walking the path & context.

Implements

IWalksAndEvaluatesPathExpression
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX