Implements a single-threaded T:System.Xml.XmlNameTable.
More...
|
| 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...
|
|
Implements a single-threaded T:System.Xml.XmlNameTable.
Definition at line 5 of file NameTable.cs.
◆ NameTable()
System.Xml.NameTable.NameTable |
( |
| ) |
|
◆ Add() [1/2]
override string System.Xml.NameTable.Add |
( |
string |
key | ) |
|
|
virtual |
Atomizes the specified string and adds it to the NameTable
.
- Parameters
-
- Returns
- The atomized string or the existing string if it already exists in the
NameTable
.
- Exceptions
-
T:System.ArgumentNullException | key 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
-
key | The character array containing the string to add. |
start | The zero-based index into the array specifying the first character of the string. |
len | The 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.IndexOutOfRangeException | 0 > 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.ArgumentOutOfRangeException | len < 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
-
- Returns
- The atomized string object or
null
if the string has not already been atomized.
- Exceptions
-
T:System.ArgumentNullException | value 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
-
key | The character array containing the name to find. |
start | The zero-based index into the array specifying the first character of the name. |
len | The 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.IndexOutOfRangeException | 0 > 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.ArgumentOutOfRangeException | len < 0. |
Implements System.Xml.XmlNameTable.
Definition at line 158 of file NameTable.cs.
The documentation for this class was generated from the following file: