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

  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 System;
  19.    
  20.     public sealed class LenientVBArrayPrototype : VBArrayPrototype
  21.     {
  22.         public new object constructor;
  23.         public new object dimensions;
  24.         public new object getItem;
  25.         public new object lbound;
  26.         public new object toArray;
  27.         public new object ubound;
  28.        
  29.         internal LenientVBArrayPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent) : base(funcprot, parent)
  30.         {
  31.             this.noExpando = false;
  32.             //this.constructor is given a value by the constructor class
  33.             Type super = typeof(VBArrayPrototype);
  34.             this.dimensions = new BuiltinFunction("dimensions", this, super.GetMethod("dimensions"), funcprot);
  35.             this.getItem = new BuiltinFunction("getItem", this, super.GetMethod("getItem"), funcprot);
  36.             this.lbound = new BuiltinFunction("lbound", this, super.GetMethod("lbound"), funcprot);
  37.             this.toArray = new BuiltinFunction("toArray", this, super.GetMethod("toArray"), funcprot);
  38.             this.ubound = new BuiltinFunction("ubound", this, super.GetMethod("ubound"), funcprot);
  39.         }
  40.     }
  41. }

Developer Fusion