private Parser(Tokenizer t)
 {
     this._t = t;
     this._doc = null;
     try
     {
         this.ParseContents();
     }
     finally
     {
         this._t.Recycle();
     }
 }
 public static void ReleaseSharedStringMaker(ref Tokenizer.StringMaker maker)
 {
     bool lockTaken = false;
     RuntimeHelpers.PrepareConstrainedRegions();
     try
     {
         Monitor.Enter(_sharedStatics, ref lockTaken);
         _sharedStatics._maker = maker;
         maker = null;
     }
     finally
     {
         if (lockTaken)
         {
             Monitor.Exit(_sharedStatics);
         }
     }
 }
Beispiel #3
0
 internal Parser( byte[] array, Tokenizer.ByteTokenEncoding encoding, int startIndex ) 
     : this (new Tokenizer( array, encoding, startIndex ) ) 
 {
 } 
Beispiel #4
0
 internal Parser( byte[] array, Tokenizer.ByteTokenEncoding encoding ) 
     : this (new Tokenizer( array, encoding, 0 ) )
 {
 }
Beispiel #5
0
        private Parser(Tokenizer t)
        {
            _t = t; 
            _doc = null;
 
            try 
            {
                ParseContents(); 
            }
            finally
            {
                _t.Recycle(); 
            }
        } 
Beispiel #6
0
        private Parser(Tokenizer t)
        {
            _t = t;
            _ecurr       = new SecurityElement();

            ParseContents (_ecurr, false) ;
        }