CSharp examples for System:Int32
Is Number Type
using Microsoft.AspNet.Html.Abstractions; using Microsoft.AspNet.Routing; using Microsoft.AspNet.Mvc.Rendering.Expressions; using System.Linq.Expressions; using System.Linq; using System.ComponentModel.DataAnnotations; using System.Collections.Generic; using System;//from ww w . ja va 2s. c o m public class Main{ private static bool IsNumberType(Type type) { if (type == typeof(Int16) || type == typeof(Int32) || type == typeof(Int64) || type == typeof(UInt16) || type == typeof(UInt32) || type == typeof(UInt64) || type == typeof(Decimal) || type == typeof(Double) || type == typeof(Single)) { return true; } return false; } }