public BinaryExpressionOperator(string symbol, ExpressionResultType result, bool canOverflow, SignedOperatonMode signage, BinaryOperatorDelegate code) { this.Symbol = symbol; this.ResultType = result; this.CanOverflow = canOverflow; this.SignedOperands = signage; this.Operation = code; }
public UnaryExpressionOperator(string symbol, ExpressionResultType result, bool canOverflow, bool signed, UnaryOperation type, UnaryOperatorDelegate code) { this.Symbol = symbol; this.ResultType = result; this.CanOverflow = canOverflow; this.Signed = signed; this.OperationType = type; this.Operation = code; }
/// <summary> /// Initializes a new instance of the <see cref="ParameterTypeMismatchException"/> class. /// </summary> /// <param name="expected">The expected parameter type.</param> /// <param name="actual">The actual parameter type.</param> public ParameterTypeMismatchException(ExpressionResultType expected, ExpressionResultType actual) : base(string.Format(Resource.ParameterTypeMismatchExceptionError, expected.ToString(), actual.ToString())) { this.expected = expected; this.actual = actual; }
public static bool HasFlag(this ExpressionResultType type, ExpressionResultType flag) { return (type & flag) == flag; }
/// <summary> /// Determines whether one or more bit fields are set in the current instance (faster than default implementation). /// </summary> /// <param name="type">An enumeration.</param> /// <param name="flag">An enumeration value.</param> /// <returns><c>true</c> if the bit field or bit fields that are set in flag are also set in the current instance; otherwise, <c>false</c>.</returns> public static bool HasFlagNI(this ExpressionResultType type, ExpressionResultType flag) { return((type & flag) == flag); }