Class ExpressionWithEnvironment
Represents an expression bound by an environment.
Inheritance
Implements
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public sealed class ExpressionWithEnvironment : Object, IExpressionWithEnvironment
Properties
Environment
Gets the environment of the expression.
Declaration
public IReadOnlyDictionary<ParameterExpression, object> Environment { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<System.Linq.Expressions.ParameterExpression, System.Object> |
Expression
Gets the expression bound to the environment.
Declaration
public Expression Expression { get; }
Property Value
Type | Description |
---|---|
System.Linq.Expressions.Expression |
Methods
ToCSharpString()
Gets a string representation of the environment-bound expression tree using C# syntax. The resulting string is not guaranteed to be semantically equivalent and should be used for diagnostic purposes only.
Declaration
public string ToCSharpString()
Returns
Type | Description |
---|---|
System.String | String representation of the environment-bound expression tree using C# syntax. |
ToInvocation()
Returns an invocation expression that will evaluate the expression in its bound environment.
Declaration
public InvocationExpression ToInvocation()
Returns
Type | Description |
---|---|
System.Linq.Expressions.InvocationExpression | Invocation expression to evaluate the bound expression. |
ToString()
Returns a friendly string representation of the expression and its environment.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Friendly string representation of the expression and its environment. |
Explicit Interface Implementations
IExpressionWithEnvironment.Bindings
Gets the environment containing bindings of parameters to values in the expression.
Declaration
IReadOnlyList<Binding> IExpressionWithEnvironment.Bindings { get; }
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<Binding> |