It is Convert.ToInt32
Int.Parse()
It's used to convert the input into integer. The input integer should be a string which contains only numbers. it throw error if string is null.
Convert.ToInt32
It's used to convert the input into integer and bool. The input integer should be an integer; if it's null it will return 0; if it's string, it should only contain the number. It's handling null value and returning 0.
converting the String (which contains long value) to integer.
Convert.ToInt32 and Int.Prase throw exception but Int.TryParse don't throw exception
Uses
Convert.ToInt32 :- when need to null automatically
Int.TryParse:- when string contain long number and use if condition
Otherwise use int.Pase
Click Here For More Details