What is the difference between Convert.ToInt32 and Int32.TryParse methods ?
'Convert.Toint32' converts the value, where as 'Int32.TryParse' is for parsing .
'Convert.Toint32' allows null values, where as 'Int32.TryParse' do not allow null values.
Possibility to throw exception if we use 'Convert.Toint32, but 'Int32.TryParse' do not throw exception.
both are same .
'Convert.Toint32' have possibility to throw Overflow Format Exception but 'Int32.TryParse' Never throw any exception .
Back To Top