public override CTerm_Base Clone() { CTerm_Separator Term = new CTerm_Separator(_Name); Term._Term = (_Term == null) ? null : _Term.Clone(); return(Term); }
//------------------------------------------------------------ public override CTerm_Base Clone() { CTerm_Assignment other = new CTerm_Assignment(_Name); other._Term = (_Term == null) ? null : _Term.Clone(); other._Variable = _Variable; return(other); }
//------------------------------------------------------------ // clone the operation public override CTerm_Base Clone() { Type myType = GetType(); Type[] types = new Type[1]; types[0] = typeof(string); ConstructorInfo myConstructor = myType.GetConstructor(types); Object[] args = new Object[1]; args[0] = _Name; CTerm_2Ops Term = (CTerm_2Ops)myConstructor.Invoke(args); Term._bTermA = _bTermA; Term._bTermB = _bTermB; Term._TermA = (_TermA != null) ? _TermA.Clone() : null; Term._TermB = (_TermB != null) ? _TermB.Clone() : null; return(Term); }