You need a way to get the current day of the week. That could be done with
DateTime.Today.DayOfWeek
If you're using that, then you can keep using DayOfWeek.Tuesday
, like this:
if (DateTime.Today.DayOfWeek == DayOfWeek.Tuesday)
And in case you want to know how to change an enum to a variable, use (int)DayOfWeek.Tuesday
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…