Int.parse vs convert.toint32
What is the difference between int.pa rse and convert.toint32
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sukesh MarlaRank #461 · 5.4K reputationPosted Aug 14, 2012, 1:32 AM EDT
int.Parse (string source) method converts the source string to its signed integer equivalent.
When source is a null reference, it will throw ArgumentNullException
Convert.ToInt(string source) method converts the source string to its signed integer equivalent. When source is a null reference, it will return 0 rather than throw ArgumentNullException
Your Response is important to use. Please Check This is Currect Answer, if it helped