Show / Hide Table of Contents

Class UsingNamespaceEvaluator

Evaluator for 'using' expressions, which get a .NET namespace name object. These will affect later C# expressions which are evaluated whilst this namespace is 'in scope'.

Inheritance
System.Object
UsingNamespaceEvaluator
Implements
IEvaluatesExpression
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.CSharpExpressions
Assembly: ZptSharp.CSharpExpressions.dll
Syntax
public class UsingNamespaceEvaluator : IEvaluatesExpression

Methods

| Improve this Doc View Source

EvaluateExpressionAsync(String, ExpressionContext, CancellationToken)

Evaluates the expression asynchronously and returns the result.

Declaration
public Task<object> EvaluateExpressionAsync(string expression, ExpressionContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.String expression

The expression string.

ExpressionContext context

The expression context.

System.Threading.CancellationToken cancellationToken

An optional cancellation token.

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

The expression result.

Implements

IEvaluatesExpression

Extension Methods

ExpressionEvaluatorExtensions.EvaluateExpressionAsync<T>(IEvaluatesExpression, String, ExpressionContext, CancellationToken)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX