The Labs \ Source Viewer \ SSCLI \ Microsoft.JScript \ Namespace

  1. // ==++==
  2. //
  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. //
  14. // ==--==
  15. namespace Microsoft.JScript
  16. {
  17.    
  18.     using Microsoft.JScript.Vsa;
  19.     using System;
  20.    
  21.     public sealed class Namespace
  22.     {
  23.         private string name;
  24.         internal VsaEngine engine;
  25.        
  26.         private Namespace(string name, VsaEngine engine)
  27.         {
  28.             this.name = name;
  29.             this.engine = engine;
  30.         }
  31.        
  32.         public static Namespace GetNamespace(string name, VsaEngine engine)
  33.         {
  34.             return new Namespace(name, engine);
  35.         }
  36.        
  37.         internal Type GetType(string typeName)
  38.         {
  39.             return this.engine.GetType(typeName);
  40.         }
  41.        
  42.         internal string Name {
  43.             get { return this.name; }
  44.         }
  45.     }
  46. }

Developer Fusion