Пример #1
0
 public static Html Tag_(string name, Html child1, Html child2, Html child3, Html child4, Html child5, Html child6, Html child7)
 {
     if (child1 == null)
     {
         throw new ArgumentNullException(nameof(child1));
     }
     if (child2 == null)
     {
         throw new ArgumentNullException(nameof(child2));
     }
     if (child3 == null)
     {
         throw new ArgumentNullException(nameof(child3));
     }
     if (child4 == null)
     {
         throw new ArgumentNullException(nameof(child4));
     }
     if (child5 == null)
     {
         throw new ArgumentNullException(nameof(child5));
     }
     if (child6 == null)
     {
         throw new ArgumentNullException(nameof(child6));
     }
     if (child7 == null)
     {
         throw new ArgumentNullException(nameof(child7));
     }
     return(new Tag(name, ImmutableArray.Create <Attr>(), ImmutableArrayFactory.Create(child1, child2, child3, child4, child5, child6, child7), true));
 }
Пример #2
0
 public Html _(Html child1)
 {
     if (child1 == null)
     {
         throw new ArgumentNullException(nameof(child1));
     }
     return(new Tag(_name, _attrs, ImmutableArrayFactory.Create(child1), _shouldEncodeName));
 }
Пример #3
0
 public static Html Tag_(string name, Html child1)
 {
     if (child1 == null)
     {
         throw new ArgumentNullException(nameof(child1));
     }
     return(new Tag(name, ImmutableArray.Create <Attr>(), ImmutableArrayFactory.Create(child1), true));
 }
Пример #4
0
 public static Html _(Html sibling1, Html sibling2, Html sibling3, Html sibling4, Html sibling5, Html sibling6, Html sibling7, Html sibling8)
 {
     return(_(ImmutableArrayFactory.Create(sibling1, sibling2, sibling3, sibling4, sibling5, sibling6, sibling7, sibling8)));
 }
Пример #5
0
 public static Html _(Html sibling1, Html sibling2, Html sibling3, Html sibling4)
 {
     return(_(ImmutableArrayFactory.Create(sibling1, sibling2, sibling3, sibling4)));
 }
Пример #6
0
 public static Html _(Html sibling1)
 {
     return(_(ImmutableArrayFactory.Create(sibling1)));
 }
Пример #7
0
 public static TagBuilder Tag(string name, Attr attr1, Attr attr2, Attr attr3, Attr attr4, Attr attr5, Attr attr6, Attr attr7, Attr attr8)
 {
     return(new TagBuilder(name, ImmutableArrayFactory.Create(attr1, attr2, attr3, attr4, attr5, attr6, attr7, attr8), true));
 }
Пример #8
0
 public static Html SelfClosingTag(string name, Attr attr1, Attr attr2, Attr attr3, Attr attr4, Attr attr5, Attr attr6, Attr attr7, Attr attr8)
 {
     return(new SelfClosingTag(name, ImmutableArrayFactory.Create(attr1, attr2, attr3, attr4, attr5, attr6, attr7, attr8), true));
 }
Пример #9
0
 public static Html SelfClosingTag(string name, Attr attr1, Attr attr2)
 {
     return(new SelfClosingTag(name, ImmutableArrayFactory.Create(attr1, attr2), true));
 }
Пример #10
0
 public static TagBuilder Tag(string name, Attr attr1, Attr attr2)
 {
     return(new TagBuilder(name, ImmutableArrayFactory.Create(attr1, attr2), true));
 }