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