コード例 #1
0
ファイル: _HtmlText.cs プロジェクト: Nerven/Htmler
        private _HtmlText(HtmlTextProperties textProperties, _HtmlText cloneFrom)
        {
            Must.Assertion
            .AssertArgumentNotNull(textProperties, nameof(textProperties));

            _TextProperties = textProperties;
            _Annotations    = new _HtmlAnnotationCollection(ChildrensProof, this, cloneFrom?._Annotations);
        }
コード例 #2
0
        private _HtmlComment(HtmlCommentProperties commentProperties, _HtmlComment cloneFrom)
        {
            Must.Assertion
            .AssertArgumentNotNull(commentProperties, nameof(commentProperties));

            _CommentProperties = commentProperties;
            _Annotations       = new _HtmlAnnotationCollection(ChildrensProof, this, cloneFrom?._Annotations);
        }
コード例 #3
0
        private _HtmlRaw(HtmlRawProperties rawProperties, _HtmlRaw cloneFrom)
        {
            Must.Assertion
            .AssertArgumentNotNull(rawProperties, nameof(rawProperties));

            _RawProperties = rawProperties;
            _Annotations   = new _HtmlAnnotationCollection(ChildrensProof, this, cloneFrom?._Annotations);
        }
        protected _HtmlResourceNodeBase(TResourceProperties resourceProperties, _HtmlResourceNodeBase <TResourceNode, TResourceProperties> cloneFrom)
        {
            Must.Assertion
            .AssertArgumentNotNull(resourceProperties, nameof(resourceProperties));

            ResourceProperties = resourceProperties;

            _Annotations = new _HtmlAnnotationCollection(ChildrensProof, this, cloneFrom?._Annotations);
        }
コード例 #5
0
ファイル: _HtmlElement.cs プロジェクト: Nerven/Htmler
        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);
        }
コード例 #6
0
ファイル: _HtmlSite.cs プロジェクト: Nerven/Htmler
        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);
        }
コード例 #7
0
ファイル: _HtmlAttribute.cs プロジェクト: Nerven/Htmler
        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;
        }
コード例 #8
0
 public _HtmlAnnotationCollection(object proof, IHtmlAnnotableNode owner, _HtmlAnnotationCollection cloneFrom)
     : base(proof, owner, cloneFrom)
 {
 }