14 types derived from Calendar
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (1)
6
public abstract class EastAsianLunisolarCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (1)
11
public class GregorianCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewCalendar.cs (1)
57
public class HebrewCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (1)
39
public partial class HijriCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.Unix.cs (1)
6
public partial class HijriCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (1)
33
public partial class JapaneseCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Icu.cs (1)
9
public partial class JapaneseCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Nls.cs (1)
12
public partial class JapaneseCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (1)
19
public class JulianCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (1)
20
public class KoreanCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (1)
20
public class PersianCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (1)
18
public class TaiwanCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\ThaiBuddhistCalendar.cs (1)
17
public class ThaiBuddhistCalendar :
Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (1)
15
public partial class UmAlQuraCalendar :
Calendar
83 references to Calendar
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Binders\FloatingPointTypeModelBinderProviderTest.cs (1)
12
[InlineData(typeof(
Calendar
))]
ModelBinding\Binders\SimpleTypeModelBinderProviderTest.cs (1)
12
[InlineData(typeof(
Calendar
))]
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
FormatWeekHelper.cs (1)
21
var
calendar = Thread.CurrentThread.CurrentCulture.Calendar;
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\DateAndTime.vb (3)
132
Private ReadOnly Property CurrentCalendar() As
Calendar
179
Dim cal As
Calendar
383
Dim cal As
Calendar
= CurrentCalendar
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
246
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.
Calendar
))]
netstandard (1)
netstandard.cs (1)
816
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.
Calendar
))]
PresentationFramework (3)
System\Windows\Controls\DateTimeHelper.cs (2)
13
private static System.Globalization.
Calendar
cal = new GregorianCalendar();
133
foreach (System.Globalization.
Calendar
cal in culture.OptionalCalendars)
System\Windows\Controls\Primitives\CalendarItem.cs (1)
43
private System.Globalization.
Calendar
_calendar = new GregorianCalendar();
System.Formats.Asn1 (4)
System\Formats\Asn1\AsnDecoder.UtcTime.cs (2)
55
/// <seealso cref="System.Globalization.
Calendar
.TwoDigitYearMax"/>
315
/// <seealso cref="System.Globalization.
Calendar
.TwoDigitYearMax"/>
System\Formats\Asn1\AsnWriter.UtcTime.cs (2)
25
/// <seealso cref="System.Globalization.
Calendar
.TwoDigitYearMax"/>
56
/// <seealso cref="System.Globalization.
Calendar
.TwoDigitYearMax"/>
System.Globalization (1)
System.Globalization.cs (1)
4
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.
Calendar
))]
System.Private.CoreLib (63)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
67
public DateOnly(int year, int month, int day,
Calendar
calendar) => _dayNumber = DayNumberFromDateTime(new DateTime(year, month, day, calendar));
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (13)
224
public DateTime(int year, int month, int day,
Calendar
calendar)
286
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond,
Calendar
calendar, DateTimeKind kind)
305
private static ulong WithLeapSecond(
Calendar
calendar, int year, int month, int day, int hour, int minute, int millisecond, DateTimeKind kind)
353
public DateTime(int year, int month, int day, int hour, int minute, int second,
Calendar
calendar)
368
private static ulong WithLeapSecond(
Calendar
calendar, int year, int month, int day, int hour, int minute)
415
/// the <see cref="DateTime(int, int, int, int, int, int, int, int,
Calendar
)"/> constructor.
477
/// the <see cref="DateTime(int, int, int, int, int, int, int, int,
Calendar
, DateTimeKind)"/> constructor.
539
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond,
Calendar
calendar)
554
private static ulong WithLeapSecond(
Calendar
calendar, int year, int month, int day, int hour, int minute, int millisecond)
606
/// the <see cref="DateTime(int, int, int, int, int, int, int, int,
Calendar
)"/> constructor.
671
/// the <see cref="DateTime(int, int, int, int, int, int, int, int,
Calendar
, DateTimeKind)"/> constructor.
738
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond,
Calendar
calendar)
805
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond,
Calendar
calendar, DateTimeKind kind)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (5)
175
public DateTimeOffset(int year, int month, int day, int hour, int minute, int second, int millisecond,
Calendar
calendar, TimeSpan offset)
191
private static DateTime WithLeapSecond(
Calendar
calendar, int year, int month, int day, int hour, int minute, int millisecond, TimeSpan offset)
219
/// the <see cref="DateTimeOffset(int, int, int, int, int, int, int, int,
Calendar
, TimeSpan)"/> constructor.
276
/// the <see cref="DateTimeOffset(int, int, int, int, int, int, int, int,
Calendar
, TimeSpan)"/> constructor.
325
public DateTimeOffset(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond,
Calendar
calendar, TimeSpan offset)
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (5)
57
((
Calendar
)o).SetReadOnlyState(false);
61
public static
Calendar
ReadOnly(
Calendar
calendar)
70
Calendar
clonedCalendar = (
Calendar
)(calendar.MemberwiseClone());
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.cs (1)
324
internal static int GetCalendarCurrentEra(
Calendar
calendar)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
1908
internal
Calendar
DefaultCalendar
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (10)
63
private
Calendar
? _calendar;
784
internal static
Calendar
GetCalendarInstance(CalendarId calType)
800
internal static
Calendar
GetCalendarInstanceRare(CalendarId calType)
823
public virtual
Calendar
Calendar
831
Calendar
newObj = _cultureData.DefaultCalendar;
844
public virtual
Calendar
[] OptionalCalendars
855
Calendar
[] cals = new
Calendar
[calID.Length];
917
ci._calendar = (
Calendar
)_calendar.Clone();
962
newInfo._calendar =
Calendar
.ReadOnly(ci._calendar);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
431
Calendar
cal = dtfi.Calendar;
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (7)
87
private
Calendar
calendar;
235
internal DateTimeFormatInfo(CultureData cultureData,
Calendar
cal)
335
n.calendar = (
Calendar
)Calendar.Clone();
370
public
Calendar
Calendar
526
if (era ==
Calendar
.CurrentEra)
557
if (era ==
Calendar
.CurrentEra)
1553
newInfo.calendar =
Calendar
.ReadOnly(dtfi.Calendar);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (7)
2521
result.era =
Calendar
.CurrentEra;
3050
Calendar
calendar = GregorianCalendar.GetDefaultInstance();
3848
private static bool CheckDefaultDateTime(scoped ref DateTimeResult result, scoped ref
Calendar
cal, DateTimeStyles styles)
3940
if (result.era == -1) result.era =
Calendar
.CurrentEra;
6106
internal
Calendar
calendar;
6168
internal
Calendar
calendar;
6178
public ParsingInfo(
Calendar
calendar)
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (1)
407
Calendar
gregorianCalendar = GregorianCalendar.GetDefaultInstance();
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (2)
29
private static
Calendar
? s_defaultInstance;
41
internal static
Calendar
GetDefaultInstance() => s_defaultInstance ??= new GregorianCalendar();
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (5)
59
private readonly
Calendar
m_Cal;
65
internal GregorianCalendarHelper(
Calendar
cal, EraInfo[] eraInfo)
90
if (era ==
Calendar
.CurrentEra)
239
Calendar
.CheckAddResult(ticks, m_Cal.MinSupportedDateTime, m_Cal.MaxSupportedDateTime);
470
long ticks = GregorianCalendar.DateToTicks(year, month, day) +
Calendar
.TimeToTicks(hour, minute, second, millisecond);
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (2)
82
internal static
Calendar
? s_defaultInstance;
85
internal static
Calendar
GetDefaultInstance() => s_defaultInstance ??= new JapaneseCalendar();
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (2)
30
private static
Calendar
? s_defaultInstance;
34
internal static
Calendar
GetDefaultInstance() => s_defaultInstance ??= new TaiwanCalendar();
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
218
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.
Calendar
))]
System.Security.Cryptography (3)
System\Security\Cryptography\Helpers.cs (3)
252
internal static bool IsValidDay(this
Calendar
calendar, int year, int month, int day, int era)
257
private static bool IsValidMonth(this
Calendar
calendar, int year, int month, int era)
262
private static bool IsValidYear(this
Calendar
calendar, int year)