Fast.Reflection icon indicating copy to clipboard operation
Fast.Reflection copied to clipboard

cache bugs.

Open xiaolu6t opened this issue 9 years ago • 0 comments

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>();

xiaolu6t avatar Jul 28 '16 10:07 xiaolu6t