Example #1
0
        private _HtmlSite(HtmlSiteProperties siteProperties, _HtmlSite cloneFrom)
        {
            Must.Assertion
            .AssertArgumentNotNull(siteProperties, nameof(siteProperties));

            _SiteProperties = siteProperties;

            _Annotations = new _HtmlAnnotationCollection(ChildrensProof, this, cloneFrom?._Annotations);
            _Resources   = new _HtmlResourceNodeCollection(ChildrensProof, this, cloneFrom?._Resources);
        }
Example #2
0
 public static IHtmlSite Create(HtmlSiteProperties siteProperties) => new _HtmlSite(siteProperties, null);