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