Adam Smith

I Love Talking in C#

September, 2007

[8:01:54 PM] Gabor Cselle says: public enum Options {
Chipotle,
Subway,
Quiznos,
Other }

[8:02:46 PM] Gabor Cselle says: // yes, we're pretty predictable, it's safe to use an enum here

[8:03:36 PM] Adam Smith says:
List open = new List();
foreach(Options option in Enum.GetValues(typeof(Options))) {
if(IsOpenOnLaborDay(option)) {
open.Add(option);
}
}  
 
Adam.OutputStream.WriteLine(Array.Join(open.ToArray(), ", ");

[8:05:42 PM] Gabor Cselle says: internal readonly Person k_nerdContestWinner = adam;

← Home