The using
statement should work provided you include the entire namespace that GlobalConstants
is in - for example, to add an alias for DayOfWeek
use:
using dow = System.DayOfWeek;
Did you put it at the top of the file? Maybe it thinks you're trying to use the using()
pattern for a disposable object