// just in order to avoid compiler error that base type doesn't contain parameterless constructor
 public FieldRefOperandWithOrdering(FieldRefOperand fieldRefOperand, Camlex.OrderDirection orderDirection)
     : base(string.Empty)
 {
     if (fieldRefOperand.FieldId != null)
     {
         this.initialize(fieldRefOperand.FieldId.Value);
     }
     else if (!string.IsNullOrEmpty(fieldRefOperand.FieldName))
     {
         this.initialize(fieldRefOperand.FieldName);
     }
     else
     {
         throw new FieldRefOperandShouldContainNameOrIdException();
     }
     this.orderDirection = orderDirection;
 }
Exemple #2
0
 public FieldRefOperandWithOrdering(FieldRefOperand fieldRefOperand, Camlex.OrderDirection orderDirection)
     : base(string.Empty) // just in order to avoid compiler error that base type doesn't contain parameterless constructor
 {
     if (fieldRefOperand.FieldId != null)
     {
         this.initialize(fieldRefOperand.FieldId.Value);
     }
     else if (!string.IsNullOrEmpty(fieldRefOperand.FieldName))
     {
         this.initialize(fieldRefOperand.FieldName);
     }
     else
     {
         throw new FieldRefOperandShouldContainNameOrIdException();
     }
     this.orderDirection = orderDirection;
 }