示例#1
0
 /// <summary>
 /// Creates a new <see cref="ofFragment"/>.
 /// </summary>
 public ofFragment(ElementKey key = default, IEnumerable <ofElement> children = default) : base(key)
 {
     Children = children == null
         ? new List <ofElement>()
         : new List <ofElement>(children);
 }
示例#2
0
 /// <summary>
 /// Creates a new <see cref="ofComponent"/>.
 /// </summary>
 protected ofComponent(ElementKey key = default) : base(key)
 {
 }
示例#3
0
 /// <summary>
 /// Creates a new <see cref="ofContext{TContext}"/>.
 /// </summary>
 public ofContext(ElementKey key = default, IEnumerable <ofElement> children = default, TContext value = default) : base(key, children)
 {
     Value = value;
 }