Skip to content

Instantly share code, notes, and snippets.

@DanielWJudge
Created August 25, 2014 15:42
Show Gist options
  • Save DanielWJudge/a61062be34c63193cb0d to your computer and use it in GitHub Desktop.
Save DanielWJudge/a61062be34c63193cb0d to your computer and use it in GitHub Desktop.
TimePeriodRange
if (isTypeA)
foreach (var dateTime in typeADates)
typeAPeriods.Add(new TimeRange(dateTime.Start, dateTime.End));
if (isTypeB)
foreach (var dateTime in typeBDates)
typeBPeriods.Add(new TimeRange(dateTime.Start, dateTime.End));
if (isTypeC)
foreach (var dateTime in typeCDates)
typeCPeriods.Add(new TimeRange(dateTime.Start, dateTime.End));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment