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

            clone.CopyFrom(this);
            return(clone);
        }
예제 #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;
        }
예제 #3
0
 /// <summary>
 /// Clones this instance.
 /// </summary>
 /// <returns></returns>
 public override Metadata Clone()
 {
     var clone = new CommentMetadata();
     clone.CopyFrom(this);
     return clone;
 }