Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created September 21, 2019 04:59
Embed
What would you like to do?
public class OnlyOnWeekends : IFeatureToggle
{
public bool FeatureEnabled
{
get
{
switch (DateTime.Today.DayOfWeek)
{
case DayOfWeek.Saturday:
case DayOfWeek.Sunday:
return true;
default:
return false;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment