Re: test is int?

  • From: "Tyler Littlefield" <tyler@xxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 4 Feb 2009 11:25:14 -0700

you can use typeof, or is.
if (i is int)
I believe.
HTH,

----- Original Message ----- From: "Alex Hall" <mehgcap@xxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Wednesday, February 04, 2009 11:24 AM
Subject: c#: test is int?


Hi,
I wrote something in javascript. A method I used was "isNaN" ("is not a number"), which returns true if the tested char is a character and false if it is an integer. What is the coresponding method in c#? Something like "IsInt()"? Thanks.

Have a great day,
Alex
__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts:

  • » Re: test is int? - Tyler Littlefield