You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize IsList() check to only call GetGenericTypeDefinition() once
It's likely that `GetGenericTypeDefinition()` is a fast call that's cached by the framework. Nevertheless, there's no reason to call it three times in a row. A faster approach is to simply place the types in a static collection and then check to see if that collection contains the `GetGenericTypeDefinition()`.
0 commit comments