Exemple #1
0
        /// <summary cref="IEncodeable.IsEqual(IEncodeable)" />
        public override bool IsEqual(IEncodeable encodeable)
        {
            if (Object.ReferenceEquals(this, encodeable))
            {
                return(true);
            }

            BicycleType value = encodeable as BicycleType;

            if (value == null)
            {
                return(false);
            }

            if (!base.IsEqual(encodeable))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_noOfGears, value.m_noOfGears))
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
        /// <summary cref="Object.MemberwiseClone" />
        public new object MemberwiseClone()
        {
            BicycleType clone = (BicycleType)base.MemberwiseClone();

            clone.m_noOfGears = (uint)Utils.Clone(this.m_noOfGears);

            return(clone);
        }
        /// <summary cref="ICloneable.Clone" />
        public override object Clone()
        {
            BicycleType clone = (BicycleType)base.Clone();

            clone.m_noOfGears = (uint)Utils.Clone(this.m_noOfGears);

            return(clone);
        }
Exemple #4
0
        /// <summary cref="ICloneable.Clone" />
        public override object Clone()
        {
            BicycleType clone = (BicycleType)base.Clone();

            clone.m_noOfGears      = (uint)Utils.Clone(this.m_noOfGears);
            clone.m_manufacterName = (QualifiedName)Utils.Clone(this.m_manufacterName);

            return(clone);
        }