Hi there,
I'd like to know if the following is possilbe in C#:
Consider the enum "DayOfWeek" which is already built into the .NET framework.
I'd like to create a constant one-dimensional array whose elements should be addressable by the DayOfWeek enum, for example (pseudo-code!)
such that I could access the byte value "3" by
Thanks a lot for any suggestions,
Anne
I'd like to know if the following is possilbe in C#:
Consider the enum "DayOfWeek" which is already built into the .NET framework.
I'd like to create a constant one-dimensional array whose elements should be addressable by the DayOfWeek enum, for example (pseudo-code!)
Code:
const byte[DayOfWeek] MY_ARRAY = {5, 2, 6, 3, 6, 2, 1};
such that I could access the byte value "3" by
Code:
MY_ARRAY[Wednesday]
Thanks a lot for any suggestions,
Anne