public ColumnOperandWithOrdering(ColumnOperand columnOperand, SPSearch.OrderDirection orderDirection) : base(string.Empty) // just in order to avoid compiler error that base type doesn't contain parameterless constructor { if (!string.IsNullOrEmpty(columnOperand.ColumnName)) { this.Initialize(columnOperand.ColumnName); } else { throw new ColumnOperandShouldContainNameException(); } this._orderDirection = orderDirection; }
// just in order to avoid compiler error that base type doesn't contain parameterless constructor public ColumnOperandWithOrdering(ColumnOperand columnOperand, SPSearch.OrderDirection orderDirection) : base(string.Empty) { if (!string.IsNullOrEmpty(columnOperand.ColumnName)) { this.Initialize(columnOperand.ColumnName); } else { throw new ColumnOperandShouldContainNameException(); } this._orderDirection = orderDirection; }