Name

NameTable

Synopsis

This class is a concrete implementation of the XmlNameTable type (described later in this chapter). It is entirely an optimization within the .NET XML stack; it provides a table of string objects for element and attribute names used in an XML document. The XML parser uses these string objects for efficient manipulation of repeated element and attribute names. See XmlNameTable for more discussion of its behavior and usage.

Normally .NET applications have no need to use this class directly. At most, a new instance is passed in blindly when constructing various XML-related types, such as XmlNamespaceManager.

public class NameTable : XmlNameTable {
// Public Constructors
   public method NameTable();  
// Public Instance Methods
   public override method string Add(char[] key, int start,      // overrides XmlNameTable
        int len);  
   public override method string Add(string key);               // overrides XmlNameTable
   public override method string Get(char[] key, int start,      // overrides XmlNameTable
        int len);  
   public override method string Get(string value);             // overrides XmlNameTable
}

Hierarchy

System.ObjectXmlNameTableNameTable

Passed To

System.Xml.Xsl.XsltContext.XsltContext()

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.