The Labs \ Source Viewer \ SSCLI \ System.Xml.Xsl.XsltOld \ NamespaceDecl

  1. //------------------------------------------------------------------------------
  2. // <copyright file="NamespaceDecl.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.Xsl.XsltOld
  16. {
  17.     using Res = System.Xml.Utils.Res;
  18.     using System;
  19.     using System.Xml;
  20.    
  21.     internal class NamespaceDecl
  22.     {
  23.         private string prefix;
  24.         private string nsUri;
  25.         private string prevDefaultNsUri;
  26.         private NamespaceDecl next;
  27.        
  28.         internal string Prefix {
  29.             get { return this.prefix; }
  30.         }
  31.        
  32.         internal string Uri {
  33.             get { return this.nsUri; }
  34.         }
  35.        
  36.         internal string PrevDefaultNsUri {
  37.             get { return this.prevDefaultNsUri; }
  38.         }
  39.        
  40.         internal NamespaceDecl Next {
  41.             get { return this.next; }
  42.         }
  43.        
  44.         internal NamespaceDecl(string prefix, string nsUri, string prevDefaultNsUri, NamespaceDecl next)
  45.         {
  46.             Init(prefix, nsUri, prevDefaultNsUri, next);
  47.         }
  48.        
  49.         internal void Init(string prefix, string nsUri, string prevDefaultNsUri, NamespaceDecl next)
  50.         {
  51.             this.prefix = prefix;
  52.             this.nsUri = nsUri;
  53.             this.prevDefaultNsUri = prevDefaultNsUri;
  54.             this.next = next;
  55.         }
  56.     }
  57. }

Developer Fusion