public override IOperationResult ToResult() { var result = new XElement(Tags.DateRangesOverlap, startFieldRefOperand.ToCaml(), stopFieldRefOperand.ToCaml(), recurrenceFieldRefOperand.ToCaml(), dateTimeOperand.ToCaml()); return(operationResultBuilder.CreateResult(result)); }
public override IOperationResult ToResult() { XElement result; if (membershipType is Camlex.SPGroup) { result = new XElement(Tags.Membership, new XAttribute(Attributes.Type, membershipType), new XAttribute(Attributes.ID, ((Camlex.SPGroup)membershipType).GroupId), fieldRefOperand.ToCaml()); } else { result = new XElement(Tags.Membership, new XAttribute(Attributes.Type, membershipType), fieldRefOperand.ToCaml()); } return(operationResultBuilder.CreateResult(result)); }