internal static bool IsStrongSpatialType(TypeUsage type) { if (TypeSemantics.IsPrimitiveType(type)) { return(Helper.IsStrongSpatialTypeKind(((PrimitiveType)type.EdmType).PrimitiveTypeKind)); } return(false); }
internal static void ForAllBasePrimitiveTypes(Action <PrimitiveTypeKind> forEachType) { for (var idx = 0; idx < EdmConstants.NumPrimitiveTypes; idx++) { var typeKind = (PrimitiveTypeKind)idx; if (!Helper.IsStrongSpatialTypeKind(typeKind)) { forEachType(typeKind); } } }
// <summary> // determines if type is a strong spatial type (i.e., a spatial type, but not one of the two spatial union types) // </summary> internal static bool IsStrongSpatialType(TypeUsage type) { return(IsPrimitiveType(type) && Helper.IsStrongSpatialTypeKind(((PrimitiveType)type.EdmType).PrimitiveTypeKind)); }