Skip to content

Commit

Permalink
Remove "virtual" from GregorianCalendarHelper (#33241)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas authored Mar 5, 2020
1 parent c15835b commit db702b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ internal bool IsValidYear(int year, int era)

// Returns a given date part of this DateTime. This method is used
// to compute the year, day-of-year, month, or day part.
internal virtual int GetDatePart(long ticks, int part)
internal int GetDatePart(long ticks, int part)
{
CheckTicksRange(ticks);
// n = number of days since 1/1/0001
Expand Down Expand Up @@ -624,7 +624,7 @@ public DateTime ToDateTime(int year, int month, int day, int hour, int minute, i
return new DateTime(ticks);
}

public virtual int GetWeekOfYear(DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek)
public int GetWeekOfYear(DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek)
{
CheckTicksRange(time.Ticks);
// Use GregorianCalendar to get around the problem that the implmentation in Calendar.GetWeekOfYear()
Expand Down

0 comments on commit db702b2

Please sign in to comment.