src/Shared/EntityFramework/Core/Metadata/Edm/FacetDescription.cs
// <summary>
// Returns true if the facet type is of numeric type
// </summary>
// <param name="facetType"> Type of the facet </param>
Returns true if the facet type is of numeric type
Returns true if the facet type is of numeric type
internal static bool IsNumericType(EdmType facetType)
        {
            if (Helper.IsPrimitiveType(facetType))
            {
                var primitiveType = (PrimitiveType)facetType;
                return primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Byte ||
                       primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.SByte ||
                       primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Int16 ||
                       primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Int32;
            }
            return false;
        }
internal static bool IsNumericType ( EdmType facetType ) { if ( Helper . IsPrimitiveType ( facetType ) ) { var primitiveType = ( PrimitiveType ) facetType ; return primitiveType . PrimitiveTypeKind == PrimitiveTypeKind . Byte || primitiveType . PrimitiveTypeKind == PrimitiveTypeKind . SByte || primitiveType . PrimitiveTypeKind == PrimitiveTypeKind . Int16 || primitiveType . PrimitiveTypeKind == PrimitiveTypeKind . Int32 ; } return false ; }
Returns true if the facet type is of numeric type
Returns true if the facet type is of numeric type
facetType
EdmType
Type of the facet
Type of the facet