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 NameTable( ); // Public Instance Methods public override string Add(char[ ]key
, intstart
, intlen
) // overrides XmlNameTable public override string Add(stringkey
); // overrides XmlNameTable public override string Get(char[ ]key
, intstart
, intlen
); // overrides XmlNameTable public override string Get(stringvalue
); // overrides XmlNameTable }
Hierarchy
System.Object
→
XmlNameTable
→
NameTable
Passed To
System.Xml.Xsl.XsltContext.XsltContext( )
Get C# in a Nutshell, Second Edition 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.