Beispiel #1
0
        /// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns></returns>
        public override Metadata Clone()
        {
            var clone = new CommentMetadata();

            clone.CopyFrom(this);
            return(clone);
        }
Beispiel #2
0
        /// <summary>
        /// Performs a deep copy of the data in this object to another instance of the Metadata.
        /// </summary>
        /// <param name="other">The other.</param>
        protected override void CopyFrom(Metadata other)
        {
            if (other == null)
            {
                throw new ArgumentNullException("other");
            }

            base.CopyFrom(other);

            CommentMetadata metadata = (CommentMetadata)other;

            m_comment = metadata.Comment;
        }
Beispiel #3
0
 /// <summary>
 /// Clones this instance.
 /// </summary>
 /// <returns></returns>
 public override Metadata Clone()
 {
     var clone = new CommentMetadata();
     clone.CopyFrom(this);
     return clone;
 }