O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required