14 types derived from Calendar
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (1)
6public abstract class EastAsianLunisolarCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (1)
11public class GregorianCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewCalendar.cs (1)
57public class HebrewCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (1)
39public partial class HijriCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.Unix.cs (1)
6public partial class HijriCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (1)
33public partial class JapaneseCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Icu.cs (1)
9public partial class JapaneseCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Nls.cs (1)
12public partial class JapaneseCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (1)
19public class JulianCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (1)
20public class KoreanCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (1)
20public class PersianCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (1)
18public class TaiwanCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\ThaiBuddhistCalendar.cs (1)
17public class ThaiBuddhistCalendar : Calendar
src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (1)
15public 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)
21var calendar = Thread.CurrentThread.CurrentCulture.Calendar;
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\DateAndTime.vb (3)
132Private ReadOnly Property CurrentCalendar() As Calendar 179Dim cal As Calendar 383Dim 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)
13private static System.Globalization.Calendar cal = new GregorianCalendar(); 133foreach (System.Globalization.Calendar cal in culture.OptionalCalendars)
System\Windows\Controls\Primitives\CalendarItem.cs (1)
43private 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)
67public 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)
224public DateTime(int year, int month, int day, Calendar calendar) 286public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar, DateTimeKind kind) 305private static ulong WithLeapSecond(Calendar calendar, int year, int month, int day, int hour, int minute, int millisecond, DateTimeKind kind) 353public DateTime(int year, int month, int day, int hour, int minute, int second, Calendar calendar) 368private 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. 539public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar) 554private 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. 738public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond, Calendar calendar) 805public 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)
175public DateTimeOffset(int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar, TimeSpan offset) 191private 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. 325public 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); 61public static Calendar ReadOnly(Calendar calendar) 70Calendar clonedCalendar = (Calendar)(calendar.MemberwiseClone());
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.cs (1)
324internal static int GetCalendarCurrentEra(Calendar calendar)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
1908internal Calendar DefaultCalendar
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (10)
63private Calendar? _calendar; 784internal static Calendar GetCalendarInstance(CalendarId calType) 800internal static Calendar GetCalendarInstanceRare(CalendarId calType) 823public virtual Calendar Calendar 831Calendar newObj = _cultureData.DefaultCalendar; 844public virtual Calendar[] OptionalCalendars 855Calendar[] cals = new Calendar[calID.Length]; 917ci._calendar = (Calendar)_calendar.Clone(); 962newInfo._calendar = Calendar.ReadOnly(ci._calendar);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
431Calendar cal = dtfi.Calendar;
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (7)
87private Calendar calendar; 235internal DateTimeFormatInfo(CultureData cultureData, Calendar cal) 335n.calendar = (Calendar)Calendar.Clone(); 370public Calendar Calendar 526if (era == Calendar.CurrentEra) 557if (era == Calendar.CurrentEra) 1553newInfo.calendar = Calendar.ReadOnly(dtfi.Calendar);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (7)
2521result.era = Calendar.CurrentEra; 3050Calendar calendar = GregorianCalendar.GetDefaultInstance(); 3848private static bool CheckDefaultDateTime(scoped ref DateTimeResult result, scoped ref Calendar cal, DateTimeStyles styles) 3940if (result.era == -1) result.era = Calendar.CurrentEra; 6106internal Calendar calendar; 6168internal Calendar calendar; 6178public ParsingInfo(Calendar calendar)
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (1)
407Calendar gregorianCalendar = GregorianCalendar.GetDefaultInstance();
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (2)
29private static Calendar? s_defaultInstance; 41internal static Calendar GetDefaultInstance() => s_defaultInstance ??= new GregorianCalendar();
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (5)
59private readonly Calendar m_Cal; 65internal GregorianCalendarHelper(Calendar cal, EraInfo[] eraInfo) 90if (era == Calendar.CurrentEra) 239Calendar.CheckAddResult(ticks, m_Cal.MinSupportedDateTime, m_Cal.MaxSupportedDateTime); 470long ticks = GregorianCalendar.DateToTicks(year, month, day) + Calendar.TimeToTicks(hour, minute, second, millisecond);
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (2)
82internal static Calendar? s_defaultInstance; 85internal static Calendar GetDefaultInstance() => s_defaultInstance ??= new JapaneseCalendar();
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (2)
30private static Calendar? s_defaultInstance; 34internal 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)
252internal static bool IsValidDay(this Calendar calendar, int year, int month, int day, int era) 257private static bool IsValidMonth(this Calendar calendar, int year, int month, int era) 262private static bool IsValidYear(this Calendar calendar, int year)