0

int.Parse vs Convert.ToInt32

Is there a difference between the Parse method to the Convert.To method? Thanks

6th Oct 2020, 6:36 PM
Maor Framowitz
Maor Framowitz - avatar
1 Resposta
0
Int32.Parse() uses only strings. ToInt32() has many overloads for different types. both throw exceptions. use Int32/int.TryParse()
7th Oct 2020, 1:37 AM
Flash