/// <summary> /// The ICloneable interface implementation /// </summary> /// <returns>A clone of itself</returns> public override object Clone() { DateTimeSymbol sym = new DateTimeSymbol(); sym.dt = dt; return(sym); }
IOperationAcceptor IOperationDetector.Detect(MathSymbol s) { if (s is DateTimeSymbol) { DateTimeSymbol dt = s as DateTimeSymbol; return(dt); } return(null); }
/// <summary> /// Copy constructor /// </summary> /// <param name="s">Prototype</param> public DateTimeSymbol(DateTimeSymbol s) : base(s) { dt = s.dt; }