CSharp examples for System:Type
Is Type Float
using System.Threading.Tasks; using System.Text; using System.Runtime.InteropServices; using System.Reflection; using System.Linq.Expressions; using System.Linq; using System.Collections.Generic; using System;// ww w .ja va 2 s .c om using SafeILGenerator.Ast.Nodes; public class Main{ static public bool IsTypeFloat(Type Type) { return (Type == typeof(float)) || (Type == typeof(double)); } }