Originally Posted by Warhaven
Nicely done. My only quip is the break; used in the while-loop example. Using break outside of a switch() statement is considered bad form according to most programming guidelines (along with continue and goto). I feel this would be a better example and achieves the same goal:
Double mydouble = 1.337;
int myinteger = 3;
while (mydouble != myinteger / 3)
mydouble = Convert.ToDouble(Convert.ToInt32(mydouble));
If you can do it with the condition, fair enough. Also fair enough about goto. But, break and continue are fine, and if not a LOT of Framework methods would be considered bad.