private _HtmlAttribute(HtmlAttributeProperties attributeProperties, _HtmlAttribute cloneFrom) { Must.Assertion .AssertArgumentNotNull(attributeProperties, nameof(attributeProperties)); _AttributeProperties = attributeProperties; _Annotations = new _HtmlAnnotationCollection(ChildrensProof, this, cloneFrom?._Annotations); _HtmlDeferredData <string> .Create(_ref => Data = _ref); Data.Final = cloneFrom?.Data.Final; }
public static IHtmlAttribute Create(HtmlAttributeProperties attributeProperties) => new _HtmlAttribute(attributeProperties, null);