/// <summary> /// Attribute objects are reused during parsing to reduce memory allocations, /// hence the Reset method. /// </summary> public void Reset(string name, XmlNodeType nt, string value) { this.Value = value; this.Name = name; this.NodeType = nt; this.Space = XmlSpace.None; this.XmlLang= null; this.IsEmpty = true; this.attributes.Count = 0; this.DtdType = null; }
public void Reset(string name, XmlNodeType nt, string value) { Value = value; Name = name; NodeType = nt; Space = XmlSpace.None; XmlLang= null; IsEmpty = true; _attcount = 0; DtdType = null; }