Ejemplo n.º 1
0
 public IntExpression(IntAttribute property, ValueOperator op, IntAttribute value)
 {
     _binExp = new BinaryExpression((NodeAttribute)property, BinaryExpression.GetOperator(op), BinaryExpression.GetNodeAttribute(value));
 }
Ejemplo n.º 2
0
 public IntExpression(PropertyType property, ValueOperator op, IntAttribute value)
 {
     if (property == null)
     {
         throw new ArgumentNullException("property");
     }
     if (property.DataType != DataType.Int)
     {
         throw GetWrongPropertyDataTypeException("property", DataType.Int);
     }
     _binExp = new BinaryExpression(property, BinaryExpression.GetOperator(op), BinaryExpression.GetNodeAttribute(value));
 }
Ejemplo n.º 3
0
 public DateTimeExpression(PropertyType property, ValueOperator op, DateTimeAttribute value)
 {
     if (property == null)
     {
         throw new ArgumentNullException("property");
     }
     if (property.DataType != DataType.DateTime)
     {
         throw new ArgumentOutOfRangeException("property", "The DataType of 'property' must be DataType.DateTime");
     }
     _binExp = new BinaryExpression(property, BinaryExpression.GetOperator(op), BinaryExpression.GetNodeAttribute(value));
 }
Ejemplo n.º 4
0
 public DateTimeExpression(DateTimeAttribute property, ValueOperator op, DateTimeAttribute value)
 {
     _binExp = new BinaryExpression((NodeAttribute)property, BinaryExpression.GetOperator(op), BinaryExpression.GetNodeAttribute(value));
 }
Ejemplo n.º 5
0
 public StringExpression(StringAttribute property, StringOperator op, StringAttribute value)
 {
     _binExp = new BinaryExpression((NodeAttribute)property, BinaryExpression.GetOperator(op), BinaryExpression.GetNodeAttribute(value));
 }