C# Class Microsoft.Scripting.Generation.ConstantCheck

Datei anzeigen Open project: jschementi/iron

Public Methods

Method Description
Check ( Expression expression, object value ) : bool

Tests to see if the expression is a constant with the given value.

Private Methods

Method Description
Check ( TypeBinaryExpression node, object value ) : bool
CheckAndAlso ( BinaryExpression node, object value ) : bool
CheckConstant ( ConstantExpression node, object value ) : bool
CheckOrElse ( BinaryExpression node, object value ) : bool
IsConstant ( Expression e, object value ) : bool
IsNull ( Expression e ) : bool

Method Details

Check() public static method

Tests to see if the expression is a constant with the given value.
public static Check ( Expression expression, object value ) : bool
expression Expression The expression to examine
value object The constant value to check for.
return bool