Exemple #1
0
 /// <summary>
 /// Returns the last instance of time period type <typeparamref name="T"/> which sits within the current instance.
 /// </summary>
 /// <typeparam name="T">The type of the time period being returns.</typeparam>
 /// <returns>The last instance of <typeparamref name="T"/> which sit within the <see cref="Season"/>
 /// represented by the current instance.</returns>
 public T Last <T>() where T : ITimePeriod <T>
 {
     return(TimePeriodHelper.Last <Season, T>(this));
 }
Exemple #2
0
 /// <summary>
 /// Returns the last instance of time period type <typeparamref name="T"/> which sits within the current instance.
 /// </summary>
 /// <typeparam name="T">The type of the time period being returns.</typeparam>
 /// <returns>The last instance of <typeparamref name="T"/> which sit within the <see cref="QuarterHour"/>
 /// represented by the current instance.</returns>
 public T Last <T>() where T : ITimePeriod <T>
 {
     return(TimePeriodHelper.Last <QuarterHour, T>(this));
 }
 /// <summary>
 /// Returns the last instance of time period type <typeparamref name="T"/> which sits within the current instance.
 /// </summary>
 /// <typeparam name="T">The type of the time period being returns.</typeparam>
 /// <returns>The last instance of <typeparamref name="T"/> which sit within the <see cref="CalendarYear"/>
 /// represented by the current instance.</returns>
 public T Last <T>() where T : ITimePeriod <T>
 {
     return(TimePeriodHelper.Last <CalendarYear, T>(this));
 }