How to check the type of object in ArrayList
Posted
by mouthpiec
on Stack Overflow
See other posts from Stack Overflow
or by mouthpiec
Published on 2010-03-15T08:47:15Z
Indexed on
2010/03/15
8:49 UTC
Read the original article
Hit count: 236
Hi,
Is there a way to get the type of object in the arraylist?
I need to make an IF statment as the following (in C#):
if(object is int)
//code
else
//code
thanks
© Stack Overflow or respective owner