protected State(SerializationInfo info, StreamingContext context)
 {
     this.VERSION = 1;
     SerializationInfoEnumerator enumerator = info.GetEnumerator();
     if (enumerator != null)
     {
         while (enumerator.MoveNext())
         {
             if (string.Compare(enumerator.Name, "Data", true, CultureInfo.InvariantCulture) == 0)
             {
                 try
                 {
                     byte[] buffer = (byte[]) enumerator.Value;
                     if (buffer != null)
                     {
                         this.InitializeFromStream(new MemoryStream(buffer));
                     }
                 }
                 catch (Exception)
                 {
                 }
             }
             else if (string.Compare(enumerator.Name, "PropertyBagBinary", true, CultureInfo.InvariantCulture) == 0)
             {
                 try
                 {
                     byte[] buffer2 = (byte[]) enumerator.Value;
                     if (buffer2 != null)
                     {
                         this.propBag = new AxHost.PropertyBagStream();
                         this.propBag.Read(new MemoryStream(buffer2));
                     }
                 }
                 catch (Exception)
                 {
                 }
             }
         }
     }
 }
 internal State(MemoryStream ms, int storageType, AxHost ctl, AxHost.PropertyBagStream propBag)
 {
     this.VERSION = 1;
     this.type = storageType;
     this.propBag = propBag;
     this.length = (int) ms.Length;
     this.ms = ms;
     this.manualUpdate = ctl.GetAxState(AxHost.manualUpdate);
     this.licenseKey = ctl.GetLicenseKey();
 }
 internal State(AxHost.PropertyBagStream propBag)
 {
     this.VERSION = 1;
     this.propBag = propBag;
 }