Amit Maheshwari

Amit Maheshwari

  • NA
  • 5.3k
  • 1.4m

Casting in C#

Nov 29 2011 11:54 AM
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)