The Labs \ Source Viewer \ SSCLI \ System.Xml \ XmlNameTable

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlNameTable.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.Xml
  16. {
  17.    
  18.     /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable"]/*' />
  19.     /// <devdoc>
  20.     /// <para> Table of atomized string objects. This provides an
  21.     /// efficient means for the XML parser to use the same string object for all
  22.     /// repeated element and attribute names in an XML document. This class is
  23.     /// <see langword='abstract'/>
  24.     /// .</para>
  25.     /// </devdoc>
  26.     public abstract class XmlNameTable
  27.     {
  28.         /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable.Get"]/*' />
  29.         /// <devdoc>
  30.         /// <para>Gets the atomized String object containing the same
  31.         /// chars as the specified range of chars in the given char array.</para>
  32.         /// </devdoc>
  33.         public abstract string Get(char[] array, int offset, int length);
  34.        
  35.         /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable.Get1"]/*' />
  36.         /// <devdoc>
  37.         /// <para>
  38.         /// Gets the atomized String object containing the same
  39.         /// value as the specified string.
  40.         /// </para>
  41.         /// </devdoc>
  42.         public abstract string Get(string array);
  43.        
  44.         /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable.Add"]/*' />
  45.         /// <devdoc>
  46.         /// <para>Creates a new atom for the characters at the specified range
  47.         /// of chararacters in the specified string.</para>
  48.         /// </devdoc>
  49.         public abstract string Add(char[] array, int offset, int length);
  50.        
  51.         /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable.Add1"]/*' />
  52.         /// <devdoc>
  53.         /// <para>
  54.         /// Creates a new atom for the specified string.
  55.         /// </para>
  56.         /// </devdoc>
  57.         public abstract string Add(string array);
  58.     }
  59. }

Developer Fusion