C# Class Vertesaur.Generation.Expressions.ExpressionBuilderExtensionMethods

Utility and extension methods to support expression generation.
Afficher le fichier Open project: aarondandy/vertesaur

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
InvalidOp ( string expressionName, IEnumerable inputExpressions ) : InvalidOperationException
InvalidOp ( string expressionName, Type type ) : InvalidOperationException
InvalidOpConversion ( Type from, Type to ) : InvalidOperationException

Method Details

Generate() public static méthode

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.
Résultat System.Linq.Expressions.Expression

Generate() public static méthode

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.
Résultat System.Linq.Expressions.Expression

Generate() public static méthode

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.
Résultat System.Linq.Expressions.Expression

Generate() public static méthode

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.
Résultat System.Linq.Expressions.Expression

GenerateConversion() public static méthode

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.
Résultat System.Linq.Expressions.Expression

GenerateConversionOrThrow() public static méthode

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.
Résultat System.Linq.Expressions.Expression

GenerateOrThrow() public static méthode

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.
Résultat Expression

GenerateOrThrow() public static méthode

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.
Résultat Expression

GenerateOrThrow() public static méthode

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.
Résultat Expression

NewConversionRequest() public static méthode

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.
Résultat IExpressionGenerationRequest

NewRequest() public static méthode

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.
Résultat IExpressionGenerationRequest

NewRequest() public static méthode

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.
Résultat IExpressionGenerationRequest