C# Класс Microsoft.Scripting.Actions.ConditionalBuilder

Builds up a series of conditionals when the False clause isn't yet known. We can keep appending conditions and if true's. Each subsequent true branch becomes the false branch of the previous condition and body. Finally a non-conditional terminating branch must be added.
Показать файл Открыть проект

Открытые методы

Метод Описание
AddCondition ( Expression condition, Expression body ) : void

Adds a new conditional and body. The first call this becomes the top-level conditional, subsequent calls will have it added as false statement of the previous conditional.

AddVariable ( System.Linq.Expressions.ParameterExpression var ) : void

Adds a variable which will be scoped at the level of the final expression.

FinishCondition ( DynamicMetaObject body ) : void
FinishCondition ( Expression body ) : void

Adds the non-conditional terminating node.

FinishError ( DynamicMetaObject body ) : void
FinishError ( Expression body ) : void

Adds the non-conditional terminating node.

GetMetaObject ( ) : DynamicMetaObject

Gets the resulting meta object for the full body. FinishCondition must have been called.

Описание методов

AddCondition() публичный Метод

Adds a new conditional and body. The first call this becomes the top-level conditional, subsequent calls will have it added as false statement of the previous conditional.
public AddCondition ( Expression condition, Expression body ) : void
condition System.Linq.Expressions.Expression
body System.Linq.Expressions.Expression
Результат void

AddVariable() публичный Метод

Adds a variable which will be scoped at the level of the final expression.
public AddVariable ( System.Linq.Expressions.ParameterExpression var ) : void
var System.Linq.Expressions.ParameterExpression
Результат void

FinishCondition() публичный Метод

public FinishCondition ( DynamicMetaObject body ) : void
body DynamicMetaObject
Результат void

FinishCondition() публичный Метод

Adds the non-conditional terminating node.
public FinishCondition ( Expression body ) : void
body System.Linq.Expressions.Expression
Результат void

FinishError() публичный Метод

public FinishError ( DynamicMetaObject body ) : void
body DynamicMetaObject
Результат void

FinishError() публичный Метод

Adds the non-conditional terminating node.
public FinishError ( Expression body ) : void
body System.Linq.Expressions.Expression
Результат void

GetMetaObject() публичный Метод

Gets the resulting meta object for the full body. FinishCondition must have been called.
public GetMetaObject ( ) : DynamicMetaObject
Результат DynamicMetaObject