1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-10 18:11:04 +09:00

Remove virtual modifier from GetDatePart (#104456)

* Remove `virtual` modifier from `GetDatePart`

* Update HebrewCalendar.cs

---------

Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
xtqqczze 2024-07-05 13:55:05 +01:00 committed by GitHub
parent 8bcbe18072
commit c52177b21c
Signed by: github
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -432,7 +432,7 @@ namespace System.Globalization
/// Returns a given date part of this DateTime. This method is used
/// to compute the year, day-of-year, month, or day part.
/// </summary>
internal virtual int GetDatePart(long ticks, int part)
private static int GetDatePart(long ticks, int part)
{
// The Gregorian year, month, day value for ticks.
int hebrewYearType; // lunar year type

View file

@ -192,7 +192,7 @@ namespace System.Globalization
/// In order to get the exact Hijri year, we compare the exact absolute date for HijriYear and (HijriYear + 1).
/// From here, we can get the correct Hijri year.
/// </summary>
internal virtual int GetDatePart(long ticks, int part)
private int GetDatePart(long ticks, int part)
{
CheckTicksRange(ticks);

View file

@ -111,7 +111,7 @@ namespace System.Globalization
/// Returns a given date part of this DateTime. This method is used
/// to compute the year, day-of-year, month, or day part.
/// </summary>
internal static int GetDatePart(long ticks, int part)
private static int GetDatePart(long ticks, int part)
{
// Gregorian 1/1/0001 is Julian 1/3/0001. Remember DateTime(0) is referred to Gregorian 1/1/0001.
// The following line convert Gregorian ticks to Julian ticks.

View file

@ -141,7 +141,7 @@ namespace System.Globalization
return DaysToMonth[month];
}
internal int GetDatePart(long ticks, int part)
private int GetDatePart(long ticks, int part)
{
CheckTicksRange(ticks);