Is Type Float - CSharp System

CSharp examples for System:Type

Description

Is Type Float

Demo Code


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));
      }
}

Related Tutorials