C# 클래스 Vertesaur.Generation.Expressions.LocalExpressionVariableManager

Manages local variables during the dynamic generation of expression blocks.
파일 보기 프로젝트 열기: aarondandy/vertesaur 1 사용 예제들

공개 메소드들

메소드 설명
GetVariable ( Type type ) : System.Linq.Expressions.ParameterExpression

Manually requests an unused variable from the pending pool or creates a new variable.

LocalExpressionVariableManager ( ) : System

Manages the lifetimes and reuse of parameter expressions which are used as local variables.

ReleaseVariable ( System.Linq.Expressions.ParameterExpression variable ) : bool

Manually releases a variable that is currently in use so it can be demoted to the pending variable pool.

ReleaseVariables ( IEnumerable variables ) : bool

Manually releases multiple variables that are currently in use to they can be demoted to the pending variable pool.

Use ( Type type ) : VariableUsage

Creates a new expression variable or reuses an unused expression variable.

비공개 메소드들

메소드 설명
CodeContractInvariants ( ) : void
GetNewVariableName ( ) : string
GetNewVariableNumber ( ) : int
RemoveFirstPending ( Type type ) : System.Linq.Expressions.ParameterExpression

메소드 상세

GetVariable() 공개 메소드

Manually requests an unused variable from the pending pool or creates a new variable.
public GetVariable ( Type type ) : System.Linq.Expressions.ParameterExpression
type System.Type The type of the variable to create.
리턴 System.Linq.Expressions.ParameterExpression

LocalExpressionVariableManager() 공개 메소드

Manages the lifetimes and reuse of parameter expressions which are used as local variables.
public LocalExpressionVariableManager ( ) : System
리턴 System

ReleaseVariable() 공개 메소드

Manually releases a variable that is currently in use so it can be demoted to the pending variable pool.
public ReleaseVariable ( System.Linq.Expressions.ParameterExpression variable ) : bool
variable System.Linq.Expressions.ParameterExpression The variable to manually release.
리턴 bool

ReleaseVariables() 공개 메소드

Manually releases multiple variables that are currently in use to they can be demoted to the pending variable pool.
public ReleaseVariables ( IEnumerable variables ) : bool
variables IEnumerable The variables to manually release.
리턴 bool

Use() 공개 메소드

Creates a new expression variable or reuses an unused expression variable.
public Use ( Type type ) : VariableUsage
type System.Type The type of the variable to create or reuse.
리턴 VariableUsage