Exemplo n.º 1
0
 /// <summary>
 /// It initializes a new instance of the class.
 /// </summary>
 public MidEqualsBinaryOperator()
     : base()
 {
     _valueExpression = null;
     _startIndex      = 0;
     _length          = 0;
 }
Exemplo n.º 2
0
        /// <summary>
        /// It initializes a new instance of the class.
        /// </summary>
        /// <param name="messageExpression">
        /// The message expression, source of the field value of the equality
        /// operator (left part of the operator).
        /// </param>
        /// <param name="valueExpression">
        /// The value expression of the equality operator (right part of the operator).
        /// </param>
        /// <param name="startIndex">
        /// The index of the start of the set of bytes.
        /// </param>
        /// <param name="length">
        /// The length of the set of bytes.
        /// </param>
        public MidEqualsBinaryOperator(IMessageExpression messageExpression,
                                       BinaryConstantExpression valueExpression, int startIndex, int length)
            : base(messageExpression, valueExpression)
        {
            if (startIndex < 0)
            {
                throw new ArgumentException(
                          "The start index of the set of bytes can't be a negative value.", "startIndex");
            }

            if (length < 0)
            {
                throw new ArgumentException(
                          "The length of the set of bytes can't be a negative value.", "length");
            }

            _startIndex = startIndex;
            _length     = length;
        }
 /// <summary>
 /// It initializes a new instance of the class.
 /// </summary>
 /// <param name="messageExpression">
 /// The message expression, source of the field value of the equality
 /// operator (left part of the operator).
 /// </param>
 /// <param name="valueExpression">
 /// The value expression of the equality operator (right part of the operator).
 /// </param>
 public FieldValueEqualsBinaryOperator(IMessageExpression messageExpression,
                                       BinaryConstantExpression valueExpression) :
     base(messageExpression, valueExpression)
 {
 }
 /// <summary>
 /// It initializes a new instance of the class.
 /// </summary>
 public FieldValueEqualsBinaryOperator()
     : base()
 {
     _valueExpression = null;
 }