If you look at the source, it Convert.ToInt64(string)just calls long.Parse, but first checks that the string is not null.
I would recommend calls long.Parsebecause it makes clarity (parsing strings) clearer.
I recommend using a class Convertif the type you are converting from may change. (Or if you go from object)
SLaks source
share