コード例 #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));
 }
コード例 #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()));
 }