4
Answers

Casting in C#

Amit Maheshwari

Amit Maheshwari

12y
1.4k
1
Hi friends,

I want to know that, In which scenario, I should be using (int), Int32.Parse and Convert.ToInt32? are they same or not? I do notice in certain condition that i cannot cast directly using (int) and I have to use Convert.ToInt32.
I am not that sure why i do that. Further I just need some confirmations from you all.

Thank you.

Answers (4)