src/Mimp.SeeSharper.Reflection/TypeExtensions.cs
/// <summary>
/// Check if <paramref name="type"/> is a integer.
/// </summary>
/// <param name="type"></param>
/// <returns></returns>
/// <seealso cref="IsByte(Type)"/>
/// <seealso cref="IsSByte(Type)"/>
/// <seealso cref="IsShort(Type)"/>
/// <seealso cref="IsUShort(Type)"/>
/// <seealso cref="IsInt(Type)"/>
/// <seealso cref="IsUInt(Type)"/>
/// <seealso cref="IsLong(Type)"/>
/// <seealso cref="IsULong(Type)"/>
/// <seealso cref="IsBigInteger(Type)(Type)"/>
Check if  is a integer.
Check if is a integer .
public static bool IsInteger(this Type type) =>
               type.IsByte()
            || type.IsSByte()
            || type.IsShort()
            || type.IsUShort()
            || type.IsInt()
            || type.IsUInt()
            || type.IsLong()
            || type.IsULong()
            || type.IsBigInteger();
public static bool IsInteger ( this Type type ) => type . IsByte ( ) || type . IsSByte ( ) || type . IsShort ( ) || type . IsUShort ( ) || type . IsInt ( ) || type . IsUInt ( ) || type . IsLong ( ) || type . IsULong ( ) || type . IsBigInteger ( ) ;
Check if  is a integer.
Check if is a integer .
None
Type
this
type
None
seealso
None
seealso
None
seealso
None
seealso
None
seealso
None
seealso
None
seealso
None
seealso
None
seealso
None