Monday, March 26, 2012

What is the best method of casting an Integer

Which of the following is the best way to cast an Integer:
- CInt
- Integer.Parse
- Convert.ToInt32Not sure. I use C# and I have been using Convert.ToInt32 so far, but I'm going to try using int.Parse and see how that works. I have a feeling that the Convert.ToInt32 is the most powerful one.

0 comments:

Post a Comment