Show / Hide Table of Contents

Class FreeVariableScanner

Finds free variables, represented as ParameterExpression nodes, in an expression tree.

Inheritance
System.Object
FreeVariableScanner
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public static class FreeVariableScanner : Object

Methods

HasFreeVariables(Expression)

Checks whether the given expression has free variables.

Declaration
public static bool HasFreeVariables(Expression expression)
Parameters
Type Name Description
System.Linq.Expressions.Expression expression

Expression to scan.

Returns
Type Description
System.Boolean

true if one or more free variables have been found; otherwise, false.

Scan(Expression)

Scans the given expression for free variables.

Declaration
public static IEnumerable<ParameterExpression> Scan(Expression expression)
Parameters
Type Name Description
System.Linq.Expressions.Expression expression

Expression to scan.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.Linq.Expressions.ParameterExpression>

Sequence of free variables in the given expression. The resulting expressions are distinct and returned in no particular order.

In This Article
Back to top Generated by DocFX