MichaCo / CacheManager

CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.
http://cachemanager.michaco.net
Apache License 2.0
2.33k stars 456 forks source link

Fix infinite loop in CheckExtends #333

Open Jmerk523 opened 3 years ago

Jmerk523 commented 3 years ago

Pretty self-explanatory - intention is to traverse base type hierarchy, not to check the same one over and over again. As a side-note, this whole function should probably be replaced with typeof(TValid).IsAssignableFrom(type)