Monobjc.Tools.Generator.Parsers.Sgml.Node.Reset C# (CSharp) Method

Reset() public method

Attribute objects are reused during parsing to reduce memory allocations, hence the Reset method.
public Reset ( string name, System.Xml.XmlNodeType nt, string value ) : void
name string
nt System.Xml.XmlNodeType
value string
return void
        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;
        }