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

  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 LenientEnumeratorPrototype : EnumeratorPrototype
  21.     {
  22.         public new object constructor;
  23.         public new object atEnd;
  24.         public new object item;
  25.         public new object moveFirst;
  26.         public new object moveNext;
  27.        
  28.         internal LenientEnumeratorPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent) : base(parent)
  29.         {
  30.             this.noExpando = false;
  31.             //this.constructor is given a value by the constructor class
  32.             Type super = typeof(EnumeratorPrototype);
  33.             this.atEnd = new BuiltinFunction("atEnd", this, super.GetMethod("atEnd"), funcprot);
  34.             this.item = new BuiltinFunction("item", this, super.GetMethod("item"), funcprot);
  35.             this.moveFirst = new BuiltinFunction("moveFirst", this, super.GetMethod("moveFirst"), funcprot);
  36.             this.moveNext = new BuiltinFunction("moveNext", this, super.GetMethod("moveNext"), funcprot);
  37.         }
  38.     }
  39. }

Developer Fusion