Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 /// <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;
 }
 /// <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;
 }
Ejemplo n.º 5
0
 public static bool HasFlag(this ExpressionResultType type, ExpressionResultType flag)
 {
     return (type & flag) == flag;
 }
Ejemplo n.º 6
0
 /// <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);
 }