private _HtmlComment(HtmlCommentProperties commentProperties, _HtmlComment cloneFrom) { Must.Assertion .AssertArgumentNotNull(commentProperties, nameof(commentProperties)); _CommentProperties = commentProperties; _Annotations = new _HtmlAnnotationCollection(ChildrensProof, this, cloneFrom?._Annotations); }
public static IHtmlComment Create(HtmlCommentProperties commentProperties) => new _HtmlComment(commentProperties, null);