-
Notifications
You must be signed in to change notification settings - Fork 18
Description
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>();