You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cache is a Dictionary<int,Delegate> type,but key is hashcode,It's has some change that the type is different,but key is the same.You should use it like this:
static Dictionary<Type, Delegate> cacheDelegateForCtor = new Dictionary<Type, Delegate>();
static Dictionary<MethodInfo, Delegate> cacheDelegateForMethod = new Dictionary<MethodInfo, Delegate>();
static Dictionary<FieldInfo, Delegate> cacheDelegateForFieldSettter = new Dictionary<FieldInfo, Delegate>();
static Dictionary<FieldInfo, Delegate> cacheDelegateForFieldGettter = new Dictionary<FieldInfo, Delegate>();
static Dictionary<PropertyInfo, Delegate> cacheDelegateForPropertySetter = new Dictionary<PropertyInfo, Delegate>();
static Dictionary<PropertyInfo, Delegate> cacheDelegateForPropertyGetter = new Dictionary<PropertyInfo, Delegate>();
The text was updated successfully, but these errors were encountered:
cache is a Dictionary<int,Delegate> type,but key is hashcode,It's has some change that the type is different,but key is the same.You should use it like this:
static Dictionary<Type, Delegate> cacheDelegateForCtor = new Dictionary<Type, Delegate>();
static Dictionary<MethodInfo, Delegate> cacheDelegateForMethod = new Dictionary<MethodInfo, Delegate>();
static Dictionary<FieldInfo, Delegate> cacheDelegateForFieldSettter = new Dictionary<FieldInfo, Delegate>();
static Dictionary<FieldInfo, Delegate> cacheDelegateForFieldGettter = new Dictionary<FieldInfo, Delegate>();
static Dictionary<PropertyInfo, Delegate> cacheDelegateForPropertySetter = new Dictionary<PropertyInfo, Delegate>();
static Dictionary<PropertyInfo, Delegate> cacheDelegateForPropertyGetter = new Dictionary<PropertyInfo, Delegate>();
The text was updated successfully, but these errors were encountered: