What would be the best way to cast an object to an int?
object obj = new obj();
int i;
i = int.parse(obj.ToString()); this way??
or
i = (int)obj; or this way?
Cheers
|
Results 1 to 10 of 10
Thread: [2.0] CastingThreaded View
|
Click Here to Expand Forum to Full Width |