Пример #1
0
		private void Parse()
		{
			Debug.Assert(parsed == false);

			Asn1InputStream e = new LazyAsn1InputStream(encoded);

			Asn1Object o;
			while ((o = e.ReadObject()) != null)
			{
				AddObject(o);
			}

			encoded = null;
			parsed = true;
		}
Пример #2
0
 private void Parse()
 {
     lock (this)
     {
         if (encoded != null)
         {
             Asn1InputStream asn1InputStream = new LazyAsn1InputStream(encoded);
             Asn1Object      obj;
             while ((obj = asn1InputStream.ReadObject()) != null)
             {
                 AddObject(obj);
             }
             encoded = null;
         }
     }
 }
Пример #3
0
        private void Parse()
        {
            Debug.Assert(parsed == false);

            Asn1InputStream e = new LazyAsn1InputStream(encoded);

            Asn1Object o;

            while ((o = e.ReadObject()) != null)
            {
                AddObject(o);
            }

            encoded = null;
            parsed  = true;
        }
		private void Parse()
		{
			lock (this)
			{
				if (encoded != null)
				{
					Asn1InputStream e = new LazyAsn1InputStream(encoded);

					Asn1Object o;
					while ((o = e.ReadObject()) != null)
					{
						AddObject(o);
					}

					encoded = null;
				}
			}
		}
Пример #5
0
        private void Parse()
        {
            object obj2 = this;

            lock (obj2)
            {
                if (this.encoded != null)
                {
                    Asn1Object      obj3;
                    Asn1InputStream stream = new LazyAsn1InputStream(this.encoded);
                    while ((obj3 = stream.ReadObject()) != null)
                    {
                        base.AddObject(obj3);
                    }
                    this.encoded = null;
                }
            }
        }
Пример #6
0
        private void Parse()
        {
            lock (this)
            {
                if (!parsed)
                {
                    Asn1InputStream e = new LazyAsn1InputStream(encoded);

                    Asn1Object o;
                    while ((o = e.ReadObject()) != null)
                    {
                        AddObject(o);
                    }

                    encoded = null;
                    parsed  = true;
                }
            }
        }
Пример #7
0
        private void Parse()
        {
            lock (this)
            {
                if (null != encoded)
                {
                    Asn1EncodableVector v = new Asn1EncodableVector();
                    Asn1InputStream     e = new LazyAsn1InputStream(encoded);

                    Asn1Object o;
                    while ((o = e.ReadObject()) != null)
                    {
                        v.Add(o);
                    }

                    this.elements = v.TakeElements();
                    this.encoded  = null;
                }
            }
        }