Mono Class Library: System.Xml.NameTable Overview | Members

System.Xml.NameTable.Get Method

Looks up the string equivalent to a specified subset of a char array in the table. [Edit]

public override string Get (char[] key, int start, int len)

Parameters

key
A char array containing the string to look up. [Edit]
start
A int specifying the zero-based index into the array of the first character of the string. [Edit]
len
A int containing the number of characters in the string. [Edit]

Returns

The string equivalent of the specified subset of the char array that is stored in the table, or null if the equivalent string is not in the table. [Edit]

Exceptions

TypeReason
IndexOutOfRangeException

start

< 0.

- or -

start >= key.Length.

- or -

len > key.Length - start.

The above conditions do not cause an exception to be thrown if len = 0.

[Edit]
ArgumentOutOfRangeExceptionlen < 0. [Edit]

Remarks

Only a single instance of any given string is stored in the table. Calling this method with the same subset (containing the same characters) of any char array, returns the same instance of the string equivalent, if it exists.

Note:

This method overrides XmlNameTable.Get(Char[], int, int)(Char[], Int32, Int32).

[Edit]

Requirements

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