J
John Salerno
I think I might create an enumeration with the values Off, Red, Yellow,
Blue, and Overloaded and I might use this for bitwise comparison.
So, when initializing the arrays, if I wanted to load the values "Off"
or "Red" into my arrays instead of "0" and "1", would this still be a
string array? Or would it be an array of the type of my enum? I would be
reading strings from the text file, I guess, but I wasn't sure if this
would be interpreted as enum values (Off and Red), or if another step
was necessary to convert them. If so, then I could just convert my
arrays of 0s and 1s into Offs and Reds, but I don't know how. A foreach
loop, maybe?
Blue, and Overloaded and I might use this for bitwise comparison.
So, when initializing the arrays, if I wanted to load the values "Off"
or "Red" into my arrays instead of "0" and "1", would this still be a
string array? Or would it be an array of the type of my enum? I would be
reading strings from the text file, I guess, but I wasn't sure if this
would be interpreted as enum values (Off and Red), or if another step
was necessary to convert them. If so, then I could just convert my
arrays of 0s and 1s into Offs and Reds, but I don't know how. A foreach
loop, maybe?