private void OnDeserializedMethod(StreamingContext context)
 {
     if (this._validationCallbackInfoForSerialization != null)
     {
         System.Web.ValidationCallbackInfo[] infoArray = new System.Web.ValidationCallbackInfo[this._validationCallbackInfoForSerialization.Length / 2];
         for (int i = 0; i < this._validationCallbackInfoForSerialization.Length; i += 2)
         {
             string str    = this._validationCallbackInfoForSerialization[i];
             string method = this._validationCallbackInfoForSerialization[i + 1];
             Type   target = null;
             if (!string.IsNullOrEmpty(str))
             {
                 target = BuildManager.GetType(str, true, false);
             }
             if (target == null)
             {
                 throw new SerializationException(System.Web.SR.GetString("Type_cannot_be_resolved", new object[] { str }));
             }
             HttpCacheValidateHandler handler = (HttpCacheValidateHandler)Delegate.CreateDelegate(typeof(HttpCacheValidateHandler), target, method);
             infoArray[i] = new System.Web.ValidationCallbackInfo(handler, null);
         }
         this._validationCallbackInfo = infoArray;
     }
 }
 private void OnDeserializedMethod(StreamingContext context)
 {
     if (this._validationCallbackInfoForSerialization != null)
     {
         System.Web.ValidationCallbackInfo[] infoArray = new System.Web.ValidationCallbackInfo[this._validationCallbackInfoForSerialization.Length / 2];
         for (int i = 0; i < this._validationCallbackInfoForSerialization.Length; i += 2)
         {
             string str = this._validationCallbackInfoForSerialization[i];
             string method = this._validationCallbackInfoForSerialization[i + 1];
             Type target = null;
             if (!string.IsNullOrEmpty(str))
             {
                 target = BuildManager.GetType(str, true, false);
             }
             if (target == null)
             {
                 throw new SerializationException(System.Web.SR.GetString("Type_cannot_be_resolved", new object[] { str }));
             }
             HttpCacheValidateHandler handler = (HttpCacheValidateHandler) Delegate.CreateDelegate(typeof(HttpCacheValidateHandler), target, method);
             infoArray[i] = new System.Web.ValidationCallbackInfo(handler, null);
         }
         this._validationCallbackInfo = infoArray;
     }
 }