RicoSuter / Namotion.Reflection

.NET library with advanced reflection APIs.
MIT License
212 stars 44 forks source link

Wrong cached value pulled from cache #142

Open Purtzel opened 8 months ago

Purtzel commented 8 months ago

Hello,

when getting informations for the following two methods:

void Test( int test, bool bvalue );

void Test( bool bvalue = true );

When using ToContextualParameter on the parameter of the second overload, I'll get the information from the second parameter of the first overload which is wrong. The property information for the parameter of the second method is drawn incorrectly from the dictionary because the cache key is not selective enough to distinguish between the two overloaded methods.