Ejemplo n.º 1
0
 internal static bool IsAssignableFrom(this Type type, ITypeElement c)
 {
     return(type.FullName == c.CLRName || TypeElementUtil.GetAllSuperTypes(c).Any(superType => type.FullName == c.CLRName));
 }
Ejemplo n.º 2
0
 internal static bool IsAssignableFrom(this Type type, IDeclaredType c)
 {
     return(type.FullName == c.GetCLRName() || TypeElementUtil.GetAllSuperTypes(c).Any(superType => type.FullName == superType.GetCLRName()));
 }