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