/// <summary> /// Initializes a new instance of the <see cref="RelativeDateDefinition"/> class. /// </summary> /// <param name="relativeDate">The <see cref="relativeDate"/>.</param> /// <param name="yearDelta">The year delta.</param> /// <param name="monthDelta">The month delta.</param> /// <param name="dayDelta">The day delta.</param> public RelativeDateDefinition(RelativeDate relativeDate, int yearDelta, int monthDelta, int dayDelta) { this.RelativeDate = relativeDate; this.YearDelta = yearDelta; this.MonthDelta = monthDelta; this.DayDelta = dayDelta; this.MatchGroup = relativeDate.ToString(); }
/// <summary> /// Initializes a new instance of the <see cref="RelativeDateDefinition"/> class. /// </summary> /// <param name="relativeDate">The <see cref="relativeDate"/>.</param> /// <param name="yearDelta">The year delta.</param> /// <param name="monthDelta">The month delta.</param> /// <param name="dayDelta">The day delta.</param> public RelativeDateDefinition(RelativeDate relativeDate, int yearDelta, int monthDelta, int dayDelta) { this.RelativeDate = relativeDate; this.YearDelta = yearDelta; this.MonthDelta = monthDelta; this.DayDelta = dayDelta; this.MatchGroup = relativeDate.ToString(); }