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:
parent
8bcbe18072
commit
c52177b21c
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue