//-------------------------------------------------------------------------------------------------- #endregion #region Topology public override void Remove() { Operands.ForEach(operand => { if (operand != null) { operand.RemoveDependent(this); operand.Remove(); } }); Operands.Clear(); base.Remove(); }
public ContainsFunction(string propertyName, OperandValue operandValue) { OperatorType = FunctionOperatorType.Custom; Operands.Clear(); Operands.Add(new OperandValue(ContainsFunctionName)); Operands.Add(new OperandProperty(propertyName)); // string[] strings = operandValue.Value.ToString().Split(' '); // string value = ""; // for (int i = 0; i < strings.Length; i++) // { // strings[i] = strings[i].Trim() + " NEAR "; // value += strings[i]; // } // value = value.Substring(0, value.LastIndexOf(" NEAR ")); // operandValue.Value=value; operandValue.Value = "\"" + operandValue.Value + "\""; Operands.Add(operandValue); }
public YearFunction() { OperatorType = FunctionOperatorType.Custom; Operands.Clear(); Operands.Add(new OperandValue(YearFunctionName)); }
public void Clear() { Operands.Clear(); Operators.Clear(); }