示例#1
0
        /// <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);
        }
示例#2
0
 IOperationAcceptor IOperationDetector.Detect(MathSymbol s)
 {
     if (s is DateTimeSymbol)
     {
         DateTimeSymbol dt = s as DateTimeSymbol;
         return(dt);
     }
     return(null);
 }
示例#3
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="s">Prototype</param>
 public DateTimeSymbol(DateTimeSymbol s)
     : base(s)
 {
     dt = s.dt;
 }