public object Clone() { TOCNode tn = new TOCNode(); tn.Identifier = Identifier; tn.Resource = Resource; tn.ResourceIdentifier = ResourceIdentifier; tn.Title = Title; if (Thumbnail != null) { tn.Thumbnail = (Image)Thumbnail.Clone(); } if (Children != null) { tn.Children = (TOCList)Children.Clone(); } if (Extension != null) { if (Extension is ICloneable) { tn.Extension = ((ICloneable)Extension).Clone(); } } return(tn); }
object ICloneable.Clone() { Organization org = new Organization(); if (TableOfContents != null) { org.TableOfContents = (TOCList)TableOfContents.Clone(); } if (Extension != null) { if (Extension is ICloneable) { org.Extension = ((ICloneable)Extension).Clone(); } } return(org); }