Mono Class Library: System.Xml Namespace

System.Xml.XmlNameTable Class

Creates a table that stores unique instances of string objects. [Edit]

See Also: XmlNameTable Members

public abstract class XmlNameTable

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Remarks

Only a single instance of any given string is stored even if the string is added multiple times to the table.

Using this class provides an efficient means for an XML parser to use the same string object for all repeated element and attribute names in an XML document. If the same object is used for all repeated names, the efficiency of name comparisons is increased by allowing the names to be compared using object comparisons rather than string comparisons.

Note:

This class is abstract and is implemented in the System.Xml.NameTable class.

[Edit]

Example

See the System.Xml.NameTable class for an example using this class.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0