/// <summary> /// It initializes a new instance of the class. /// </summary> public MidEqualsStringOperator() : base() { _valueExpression = null; _startIndex = 0; _length = 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 substring. /// </param> /// <param name="length"> /// The length of the substring. /// </param> public MidEqualsStringOperator(IMessageExpression messaeExpression, StringConstantExpression valueExpression, int startIndex, int length) : base(messaeExpression, valueExpression) { if (startIndex < 0) { throw new ArgumentException( "The start index of the substring can't be a negative value.", "startIndex"); } if (length < 0) { throw new ArgumentException( "The length of the substring 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 FieldValueEqualsStringOperator(IMessageExpression messageExpression, StringConstantExpression valueExpression) : base(messageExpression, valueExpression) { }
/// <summary> /// It initializes a new instance of the class. /// </summary> public FieldValueEqualsStringOperator() : base() { _valueExpression = null; }