Skip to content

cache bugs. #2

@xiaolu6t

Description

@xiaolu6t

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions