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

Fix reflection MethodInfo/ConstructorInfo not cache properly #380

Merged

Conversation

DemoJameson
Copy link
Contributor

because Type[] does not override the GetHashCode method, each Type[] instance has a different hashcode, making it impossible to use dictionaries that use Type[] as their key

@DemoJameson DemoJameson changed the title Fix reflection MethodInfo/ConstructorInfo not cache property Fix reflection MethodInfo/ConstructorInfo not cache properly Apr 8, 2022
@DemoJameson DemoJameson force-pushed the fix_reflection_cache branch from aa59779 to bb156d3 Compare April 8, 2022 13:01
@tristanmcpherson
Copy link
Member

Wow, good catch.

@tristanmcpherson tristanmcpherson merged commit 45a8525 into risk-of-thunder:master Apr 8, 2022
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

Successfully merging this pull request may close these issues.

2 participants