1 //------------------------------------------------------------------------------
2 // <copyright file="XmlNameTable.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">[....]</owner>
6 //------------------------------------------------------------------------------
10 /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable"]/*' />
12 /// <para> Table of atomized string objects. This provides an
13 /// efficient means for the XML parser to use the same string object for all
14 /// repeated element and attribute names in an XML document. This class is
15 /// <see langword='abstract'/>
18 public abstract class XmlNameTable {
19 /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable.Get"]/*' />
21 /// <para>Gets the atomized String object containing the same
22 /// chars as the specified range of chars in the given char array.</para>
24 public abstract String Get(char[] array, int offset, int length);
26 /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable.Get1"]/*' />
29 /// Gets the atomized String object containing the same
30 /// value as the specified string.
33 public abstract String Get(String array);
35 /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable.Add"]/*' />
37 /// <para>Creates a new atom for the characters at the specified range
38 /// of chararacters in the specified string.</para>
40 public abstract String Add(char[] array, int offset, int length);
42 /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable.Add1"]/*' />
45 /// Creates a new atom for the specified string.
48 public abstract String Add(String array);