Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XData"/> class.
 /// Creates a new XElement specifying the XElement node name
 /// </summary>
 /// <param name="name">The XElement node name.</param>
 /// <param name="parent">The XElement parent node</param>
 public XData(String name, XData parent = null) :
     this(new XElement(name))
 {
     if (parent != null)
     {
         parent.Data.Add(this.Data);
     }
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XData"/> class.
 /// Creates a new XElement specifying the node name
 /// </summary>
 /// <param name="name">The XElement node name.</param>
 /// <param name="parent">The XData parent.</param>
 public XCommoner(String xName, XData parent)
     : base(xName, parent)
 {
     (this as INerveGearXml).InitAttributes();
 }