C# Класс Vertesaur.Generation.Expressions.ExpressionBuilderExtensionMethods

Utility and extension methods to support expression generation.
Показать файл Открыть проект

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

Метод Описание
Generate ( this generator, string expressionName ) : Expression

Creates a new expression.

Generate ( this generator, string expressionName, Expression input ) : Expression

Creates a new expression.

Generate ( this generator, string expressionName, Expression input0, Expression input1 ) : Expression

Creates a new expression.

Generate ( this generator, string expressionName, Type resultType ) : Expression

Creates a new expression.

GenerateConversion ( this generator, Type resultType, Expression input ) : Expression

Creates a new conversion expression.

GenerateConversionOrThrow ( this generator, Type resultType, Expression input ) : Expression

Creates a new conversion expression.

GenerateOrThrow ( this generator, string expressionName ) : Expression

Creates a new expression.

GenerateOrThrow ( this generator, string expressionName, Expression input0, Expression input1 ) : Expression

Creates a new expression.

GenerateOrThrow ( this generator, string expressionName, Type resultType ) : Expression

Creates a new expression.

NewConversionRequest ( this generator, Type resultType, Expression input ) : IExpressionGenerationRequest

Creates a new conversion expression request.

NewRequest ( this generator, string expressionName ) : IExpressionGenerationRequest

Creates a new expression request.

NewRequest ( this generator, string expressionName, Type resultType ) : IExpressionGenerationRequest

Creates a new expression request.

Приватные методы

Метод Описание
InvalidOp ( string expressionName, IEnumerable inputExpressions ) : InvalidOperationException
InvalidOp ( string expressionName, Type type ) : InvalidOperationException
InvalidOpConversion ( Type from, Type to ) : InvalidOperationException

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

Generate() публичный статический Метод

Creates a new expression.
public static Generate ( this generator, string expressionName ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
Результат System.Linq.Expressions.Expression

Generate() публичный статический Метод

Creates a new expression.
public static Generate ( this generator, string expressionName, Expression input ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
input System.Linq.Expressions.Expression The requested input for the expression.
Результат System.Linq.Expressions.Expression

Generate() публичный статический Метод

Creates a new expression.
public static Generate ( this generator, string expressionName, Expression input0, Expression input1 ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
input0 System.Linq.Expressions.Expression The first requested input for the expression.
input1 System.Linq.Expressions.Expression The second requested input for the expression.
Результат System.Linq.Expressions.Expression

Generate() публичный статический Метод

Creates a new expression.
public static Generate ( this generator, string expressionName, Type resultType ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
resultType System.Type The desired result type of the expression.
Результат System.Linq.Expressions.Expression

GenerateConversion() публичный статический Метод

Creates a new conversion expression.
public static GenerateConversion ( this generator, Type resultType, Expression input ) : Expression
generator this The expression generator to use.
resultType System.Type The desired result type of the expression to convert to.
input System.Linq.Expressions.Expression The input expression to convert from.
Результат System.Linq.Expressions.Expression

GenerateConversionOrThrow() публичный статический Метод

Creates a new conversion expression.
public static GenerateConversionOrThrow ( this generator, Type resultType, Expression input ) : Expression
generator this The expression generator to use.
resultType System.Type The desired result type of the expression to convert to.
input System.Linq.Expressions.Expression The input expression to convert from.
Результат System.Linq.Expressions.Expression

GenerateOrThrow() публичный статический Метод

Creates a new expression.
public static GenerateOrThrow ( this generator, string expressionName ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
Результат Expression

GenerateOrThrow() публичный статический Метод

Creates a new expression.
public static GenerateOrThrow ( this generator, string expressionName, Expression input0, Expression input1 ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
input0 Expression The first input argument.
input1 Expression The second input argument.
Результат Expression

GenerateOrThrow() публичный статический Метод

Creates a new expression.
public static GenerateOrThrow ( this generator, string expressionName, Type resultType ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
resultType Type The desired result type of the expression.
Результат Expression

NewConversionRequest() публичный статический Метод

Creates a new conversion expression request.
public static NewConversionRequest ( this generator, Type resultType, Expression input ) : IExpressionGenerationRequest
generator this The expression generator to use.
resultType Type The desired result type of the conversion expression.
input Expression The input expression to be converted.
Результат IExpressionGenerationRequest

NewRequest() публичный статический Метод

Creates a new expression request.
public static NewRequest ( this generator, string expressionName ) : IExpressionGenerationRequest
generator this The expression generator to use.
expressionName string The name of the requested expression.
Результат IExpressionGenerationRequest

NewRequest() публичный статический Метод

Creates a new expression request.
public static NewRequest ( this generator, string expressionName, Type resultType ) : IExpressionGenerationRequest
generator this The expression generator to use.
expressionName string The name of the requested expression.
resultType Type The desired result type of the expression.
Результат IExpressionGenerationRequest