Example #1
0
 public static bool IsGenericAssignableFrom <TSource>(this Type parentType)
 {
     return(TypeReflections.IsImplementationOfGenericType(typeof(TSource), parentType, out _));
 }
Example #2
0
 public static bool IsGenericAssignableFrom(this Type parentType, Type sourceType)
 {
     return(TypeReflections.IsImplementationOfGenericType(sourceType, parentType, out _));
 }