Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache bugs. #2

Open
xiaolu6t opened this issue Jul 28, 2016 · 0 comments
Open

cache bugs. #2

xiaolu6t opened this issue Jul 28, 2016 · 0 comments

Comments

@xiaolu6t
Copy link

xiaolu6t commented Jul 28, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant