private _HtmlElement(HtmlElementProperties elementProperties, _HtmlElement cloneFrom) { Must.Assertion .AssertArgumentNotNull(elementProperties, nameof(elementProperties)); _ElementProperties = elementProperties; _Annotations = new _HtmlAnnotationCollection(ChildrensProof, this, cloneFrom?._Annotations); _Attributes = new _HtmlAttributeCollection(ChildrensProof, this, cloneFrom?._Attributes); }
public static IHtmlElement Create(HtmlElementProperties elementProperties) => new _HtmlElement(elementProperties, null);