Imported Upstream version 4.3.2.467

Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
Xamarin Public Jenkins
2016-02-22 11:00:01 -05:00
parent f302175246
commit f3e3aab35a
4097 changed files with 122406 additions and 82300 deletions

View File

@@ -315,9 +315,10 @@ namespace System.Web {
HttpCacheValidateHandler handler = _validationCallbackInfo[i].handler;
string targetTypeName = System.Web.UI.Util.GetAssemblyQualifiedTypeName(handler.Method.ReflectedType);
string methodName = handler.Method.Name;
callbackInfos[i] = targetTypeName;
callbackInfos[i+1] = methodName;
callbackInfos[2 * i] = targetTypeName;
callbackInfos[2 * i + 1] = methodName;
}
_validationCallbackInfoForSerialization = callbackInfos;
}
@@ -339,7 +340,7 @@ namespace System.Web {
throw new SerializationException(SR.GetString(SR.Type_cannot_be_resolved, targetTypeName));
}
HttpCacheValidateHandler handler = (HttpCacheValidateHandler) Delegate.CreateDelegate(typeof(HttpCacheValidateHandler), target, methodName);
callbackInfos[i] = new ValidationCallbackInfo(handler, null);
callbackInfos[i / 2] = new ValidationCallbackInfo(handler, null);
}
_validationCallbackInfo = callbackInfos;
}