コード例 #1
0
        public override object Clone()
        {
            XAttributeTimestamp clone = (XAttributeTimestamp)base.Clone();

            clone.value = new DateTime(clone.value.Ticks);
            return(clone);
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            if (obj is XAttributeTimestamp)
            {
                XAttributeTimestamp other = (XAttributeTimestamp)obj;
                return((base.Equals(other)) && (this.value.Equals(other.value)));
            }

            return(false);
        }