最佳答案
I am curious to know what the difference is between a cast to say an int
compared to using Convert.ToInt32()
. Is there some sort of performance gain with using one?
Also which situations should each be used for? Currently I'm more inclined to use Convert
but I don't have a reason to go either way. In my mind I see them both accomplishing the same goal.