System.Xml.Xsl.XsltOld.RecordBuilder.BeginAttribute C# (CSharp) Method

BeginAttribute() private method

private BeginAttribute ( string prefix, string name, string nspace, Object htmlAttrProps, bool search ) : void
prefix string
name string
nspace string
htmlAttrProps Object
search bool
return void
        private void BeginAttribute(string prefix, string name, string nspace, Object htmlAttrProps, bool search) {
            int attrib = FindAttribute(name, nspace, ref prefix);

            if (attrib == -1) {
                attrib = NewAttribute();
            }

            Debug.Assert(this.attributeList[attrib] != null && this.attributeList[attrib] is BuilderInfo);

            BuilderInfo attribute = (BuilderInfo) this.attributeList[attrib];
            attribute.Initialize(prefix, name, nspace);
            attribute.Depth = this.recordDepth;
            attribute.NodeType = XmlNodeType.Attribute;
            attribute.htmlAttrProps = htmlAttrProps as HtmlAttributeProps;
            attribute.search = search;
            this.currentInfo  = attribute;
        }