private TimeZoneDefinition.Transition ConvertTransition(TransitionType transitionType) { TimeZoneDefinition.TransitionTargetType to = new TimeZoneDefinition.TransitionTargetType(this.ConvertTransitionKind(transitionType.To.Kind), transitionType.To.Value); AbsoluteDateTransitionType absoluteDateTransitionType = transitionType as AbsoluteDateTransitionType; if (absoluteDateTransitionType != null) { return(new TimeZoneDefinition.AbsoluteDateTransition(to, absoluteDateTransitionType.DateTime)); } RecurringDayTransitionType recurringDayTransitionType = transitionType as RecurringDayTransitionType; if (recurringDayTransitionType != null) { return(new TimeZoneDefinition.RecurringDayTransition(to, recurringDayTransitionType.TimeOffset, recurringDayTransitionType.Month, recurringDayTransitionType.DayOfWeek, recurringDayTransitionType.Occurrence)); } RecurringDateTransitionType recurringDateTransitionType = transitionType as RecurringDateTransitionType; if (recurringDateTransitionType != null) { return(new TimeZoneDefinition.RecurringDateTransition(to, recurringDateTransitionType.TimeOffset, recurringDateTransitionType.Month, recurringDateTransitionType.Day)); } return(new TimeZoneDefinition.Transition(to)); }
public RecurringDateTransition(TimeZoneDefinition.TransitionTargetType to, string timeOffset, int month, int day) : base(to, timeOffset, month) { this.day = day; }
public RecurringDayTransition(TimeZoneDefinition.TransitionTargetType to, string timeOffset, int month, string dayOfWeek, int occurrence) : base(to, timeOffset, month) { this.dayOfWeek = dayOfWeek; this.occurrence = occurrence; }
public RecurringTimeTransitionType(TimeZoneDefinition.TransitionTargetType to, string timeOffset, int month) : base(to) { this.timeOffset = timeOffset; this.month = month; }
public AbsoluteDateTransition(TimeZoneDefinition.TransitionTargetType to, DateTime dateTime) : base(to) { this.dateTime = dateTime; }
public Transition(TimeZoneDefinition.TransitionTargetType to) { this.to = to; }