示例#1
0
 internal static bool IsSubTypeOf(TypeUsage subType, TypeUsage superType)
 {
     if (subType.EdmEquals((MetadataItem)superType))
     {
         return(true);
     }
     if (Helper.IsPrimitiveType(subType.EdmType) && Helper.IsPrimitiveType(superType.EdmType))
     {
         return(TypeSemantics.IsPrimitiveTypeSubTypeOf(subType, superType));
     }
     return(subType.IsSubtypeOf(superType));
 }