Hello everyone,
First post
Anyone know the difference between the following two ways to cast one type to another?
andCode:decimal myVar = Convert.ToDecimal(1.23);
Using the Stopwatch class I ran each of the above statements through a loop 10,000 times and the Convert.ToDecimal was 40 times slower...Code:decimal myVar = (decimal)(1.23);
Regards
Pete