mscorlib(4.0.0.0) API with additions
System.Xml.NameTable Class Reference

Implements a single-threaded T:System.Xml.XmlNameTable. More...

Inheritance diagram for System.Xml.NameTable:
[legend]
Collaboration diagram for System.Xml.NameTable:
[legend]

Public Member Functions

 NameTable ()
 Initializes a new instance of the NameTable class. More...
 
override string Add (string key)
 Atomizes the specified string and adds it to the NameTable. More...
 
override string Add (char[] key, int start, int len)
 Atomizes the specified string and adds it to the NameTable. More...
 
override string Get (string value)
 Gets the atomized string with the specified value. More...
 
override string Get (char[] key, int start, int len)
 Gets the atomized string containing the same characters as the specified range of characters in the given array. More...
 

Additional Inherited Members

- Protected Member Functions inherited from System.Xml.XmlNameTable
 XmlNameTable ()
 Initializes a new instance of the T:System.Xml.XmlNameTable class. More...
 

Detailed Description

Implements a single-threaded T:System.Xml.XmlNameTable.

Definition at line 5 of file NameTable.cs.

Constructor & Destructor Documentation

◆ NameTable()

System.Xml.NameTable.NameTable ( )

Initializes a new instance of the NameTable class.

Definition at line 33 of file NameTable.cs.

Member Function Documentation

◆ Add() [1/2]

override string System.Xml.NameTable.Add ( string  key)
virtual

Atomizes the specified string and adds it to the NameTable.

Parameters
keyThe string to add.
Returns
The atomized string or the existing string if it already exists in the NameTable.
Exceptions
T:System.ArgumentNullExceptionkey is null.

Implements System.Xml.XmlNameTable.

Definition at line 46 of file NameTable.cs.

◆ Add() [2/2]

override string System.Xml.NameTable.Add ( char []  key,
int  start,
int  len 
)
virtual

Atomizes the specified string and adds it to the NameTable.

Parameters
keyThe character array containing the string to add.
startThe zero-based index into the array specifying the first character of the string.
lenThe number of characters in the string.
Returns
The atomized string or the existing string if one already exists in the NameTable. If len is zero, String.Empty is returned.
Exceptions
T:System.IndexOutOfRangeException0 > start -or- start >= key .Length -or- len >= key .Length The above conditions do not cause an exception to be thrown if len =0.
T:System.ArgumentOutOfRangeExceptionlen < 0.

Implements System.Xml.XmlNameTable.

Definition at line 86 of file NameTable.cs.

◆ Get() [1/2]

override string System.Xml.NameTable.Get ( string  value)
virtual

Gets the atomized string with the specified value.

Parameters
valueThe name to find.
Returns
The atomized string object or null if the string has not already been atomized.
Exceptions
T:System.ArgumentNullExceptionvalue is null.

Implements System.Xml.XmlNameTable.

Definition at line 118 of file NameTable.cs.

◆ Get() [2/2]

override string System.Xml.NameTable.Get ( char []  key,
int  start,
int  len 
)
virtual

Gets the atomized string containing the same characters as the specified range of characters in the given array.

Parameters
keyThe character array containing the name to find.
startThe zero-based index into the array specifying the first character of the name.
lenThe number of characters in the name.
Returns
The atomized string or null if the string has not already been atomized. If len is zero, String.Empty is returned.
Exceptions
T:System.IndexOutOfRangeException0 > start -or- start >= key .Length -or- len >= key .Length The above conditions do not cause an exception to be thrown if len =0.
T:System.ArgumentOutOfRangeExceptionlen < 0.

Implements System.Xml.XmlNameTable.

Definition at line 158 of file NameTable.cs.


The documentation for this class was generated from the following file: