263 lines
9.2 KiB
C#
263 lines
9.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Globalization
|
|
{
|
|
/// <summary>Represents time in divisions, such as months, days, and years. Years are calculated using the Chinese calendar, while days and months are calculated using the lunisolar calendar.</summary>
|
|
// Token: 0x020002D4 RID: 724
|
|
[Token(Token = "0x20002D4")]
|
|
[Serializable]
|
|
public class ChineseLunisolarCalendar : EastAsianLunisolarCalendar
|
|
{
|
|
/// <summary>Gets the minimum date and time supported by the <see cref="T:System.Globalization.ChineseLunisolarCalendar" /> class.</summary>
|
|
/// <returns>A <see cref="T:System.DateTime" /> type that represents February 19, 1901 in the Gregorian calendar, which is equivalent to the constructor, DateTime(1901, 2, 19).</returns>
|
|
// Token: 0x17000338 RID: 824
|
|
// (get) Token: 0x06001AE4 RID: 6884 RVA: 0x00011EE0 File Offset: 0x000100E0
|
|
[Token(Token = "0x17000338")]
|
|
[ComVisible(false)]
|
|
public override DateTime MinSupportedDateTime
|
|
{
|
|
[Token(Token = "0x6001AE4")]
|
|
[Address(RVA = "0xD3D350", Offset = "0xD3C350", VA = "0x180D3D350", Slot = "5")]
|
|
get
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the maximum date and time supported by the <see cref="T:System.Globalization.ChineseLunisolarCalendar" /> class.</summary>
|
|
/// <returns>A <see cref="T:System.DateTime" /> type that represents the last moment on January 28, 2101 in the Gregorian calendar, which is approximately equal to the constructor DateTime(2101, 1, 28, 23, 59, 59, 999).</returns>
|
|
// Token: 0x17000339 RID: 825
|
|
// (get) Token: 0x06001AE5 RID: 6885 RVA: 0x00011EF8 File Offset: 0x000100F8
|
|
[Token(Token = "0x17000339")]
|
|
[ComVisible(false)]
|
|
public override DateTime MaxSupportedDateTime
|
|
{
|
|
[Token(Token = "0x6001AE5")]
|
|
[Address(RVA = "0xD3D280", Offset = "0xD3C280", VA = "0x180D3D280", Slot = "6")]
|
|
get
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the number of days in the year that precedes the year that is specified by the <see cref="P:System.Globalization.ChineseLunisolarCalendar.MinSupportedDateTime" /> property.</summary>
|
|
/// <returns>The number of days in the year that precedes the year specified by <see cref="P:System.Globalization.ChineseLunisolarCalendar.MinSupportedDateTime" />.</returns>
|
|
// Token: 0x1700033A RID: 826
|
|
// (get) Token: 0x06001AE6 RID: 6886 RVA: 0x00011F10 File Offset: 0x00010110
|
|
[Token(Token = "0x1700033A")]
|
|
protected override int DaysInYearBeforeMinSupportedYear
|
|
{
|
|
[Token(Token = "0x6001AE6")]
|
|
[Address(RVA = "0xD3D1A0", Offset = "0xD3C1A0", VA = "0x180D3D1A0", Slot = "24")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700033B RID: 827
|
|
// (get) Token: 0x06001AE7 RID: 6887 RVA: 0x00011F28 File Offset: 0x00010128
|
|
[Token(Token = "0x1700033B")]
|
|
internal override int MinCalendarYear
|
|
{
|
|
[Token(Token = "0x6001AE7")]
|
|
[Address(RVA = "0xD3D2E0", Offset = "0xD3C2E0", VA = "0x180D3D2E0", Slot = "44")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700033C RID: 828
|
|
// (get) Token: 0x06001AE8 RID: 6888 RVA: 0x00011F40 File Offset: 0x00010140
|
|
[Token(Token = "0x1700033C")]
|
|
internal override int MaxCalendarYear
|
|
{
|
|
[Token(Token = "0x6001AE8")]
|
|
[Address(RVA = "0xD3D210", Offset = "0xD3C210", VA = "0x180D3D210", Slot = "45")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700033D RID: 829
|
|
// (get) Token: 0x06001AE9 RID: 6889 RVA: 0x00011F58 File Offset: 0x00010158
|
|
[Token(Token = "0x1700033D")]
|
|
internal override DateTime MinDate
|
|
{
|
|
[Token(Token = "0x6001AE9")]
|
|
[Address(RVA = "0xD3D2F0", Offset = "0xD3C2F0", VA = "0x180D3D2F0", Slot = "47")]
|
|
get
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700033E RID: 830
|
|
// (get) Token: 0x06001AEA RID: 6890 RVA: 0x00011F70 File Offset: 0x00010170
|
|
[Token(Token = "0x1700033E")]
|
|
internal override DateTime MaxDate
|
|
{
|
|
[Token(Token = "0x6001AEA")]
|
|
[Address(RVA = "0xD3D220", Offset = "0xD3C220", VA = "0x180D3D220", Slot = "48")]
|
|
get
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700033F RID: 831
|
|
// (get) Token: 0x06001AEB RID: 6891 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x1700033F")]
|
|
internal override EraInfo[] CalEraInfo
|
|
{
|
|
[Token(Token = "0x6001AEB")]
|
|
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "46")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001AEC RID: 6892 RVA: 0x00011F88 File Offset: 0x00010188
|
|
[Token(Token = "0x6001AEC")]
|
|
[Address(RVA = "0xD3CE40", Offset = "0xD3BE40", VA = "0x180D3CE40", Slot = "41")]
|
|
internal override int GetYearInfo(int LunarYear, int Index)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06001AED RID: 6893 RVA: 0x00011FA0 File Offset: 0x000101A0
|
|
[Token(Token = "0x6001AED")]
|
|
[Address(RVA = "0x5028A0", Offset = "0x5018A0", VA = "0x1805028A0", Slot = "42")]
|
|
internal override int GetYear(int year, DateTime time)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06001AEE RID: 6894 RVA: 0x00011FB8 File Offset: 0x000101B8
|
|
[Token(Token = "0x6001AEE")]
|
|
[Address(RVA = "0xD3CCE0", Offset = "0xD3BCE0", VA = "0x180D3CCE0", Slot = "43")]
|
|
internal override int GetGregorianYear(int year, int era)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Globalization.ChineseLunisolarCalendar" /> class.</summary>
|
|
// Token: 0x06001AEF RID: 6895 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001AEF")]
|
|
[Address(RVA = "0xD3D140", Offset = "0xD3C140", VA = "0x180D3D140")]
|
|
public ChineseLunisolarCalendar()
|
|
{
|
|
}
|
|
|
|
/// <summary>Retrieves the era that corresponds to the specified <see cref="T:System.DateTime" /> type.</summary>
|
|
/// <param name="time">The <see cref="T:System.DateTime" /> type to read.</param>
|
|
/// <returns>An integer that represents the era in the <paramref name="time" /> parameter.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="time" /> is less than <see cref="P:System.Globalization.ChineseLunisolarCalendar.MinSupportedDateTime" /> or greater than <see cref="P:System.Globalization.ChineseLunisolarCalendar.MaxSupportedDateTime" />.</exception>
|
|
// Token: 0x06001AF0 RID: 6896 RVA: 0x00011FD0 File Offset: 0x000101D0
|
|
[Token(Token = "0x6001AF0")]
|
|
[Address(RVA = "0xD3CCA0", Offset = "0xD3BCA0", VA = "0x180D3CCA0", Slot = "20")]
|
|
[ComVisible(false)]
|
|
public override int GetEra(DateTime time)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x17000340 RID: 832
|
|
// (get) Token: 0x06001AF1 RID: 6897 RVA: 0x00011FE8 File Offset: 0x000101E8
|
|
[Token(Token = "0x17000340")]
|
|
internal override int ID
|
|
{
|
|
[Token(Token = "0x6001AF1")]
|
|
[Address(RVA = "0x72B370", Offset = "0x72A370", VA = "0x18072B370", Slot = "7")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000341 RID: 833
|
|
// (get) Token: 0x06001AF2 RID: 6898 RVA: 0x00012000 File Offset: 0x00010200
|
|
[Token(Token = "0x17000341")]
|
|
internal override int BaseCalendarID
|
|
{
|
|
[Token(Token = "0x6001AF2")]
|
|
[Address(RVA = "0x4E8690", Offset = "0x4E7690", VA = "0x1804E8690", Slot = "8")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the eras that correspond to the range of dates and times supported by the current <see cref="T:System.Globalization.ChineseLunisolarCalendar" /> object.</summary>
|
|
/// <returns>An array of 32-bit signed integers that specify the relevant eras. The return value for a <see cref="T:System.Globalization.ChineseLunisolarCalendar" /> object is always an array containing one element equal to the <see cref="F:System.Globalization.ChineseLunisolarCalendar.ChineseEra" /> value.</returns>
|
|
// Token: 0x17000342 RID: 834
|
|
// (get) Token: 0x06001AF3 RID: 6899 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000342")]
|
|
[ComVisible(false)]
|
|
public override int[] Eras
|
|
{
|
|
[Token(Token = "0x6001AF3")]
|
|
[Address(RVA = "0xD3D1B0", Offset = "0xD3C1B0", VA = "0x180D3D1B0", Slot = "21")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Specifies the era that corresponds to the current <see cref="T:System.Globalization.ChineseLunisolarCalendar" /> object.</summary>
|
|
// Token: 0x04000E56 RID: 3670
|
|
[Token(Token = "0x4000E56")]
|
|
public const int ChineseEra = 1;
|
|
|
|
// Token: 0x04000E57 RID: 3671
|
|
[Token(Token = "0x4000E57")]
|
|
internal const int MIN_LUNISOLAR_YEAR = 1901;
|
|
|
|
// Token: 0x04000E58 RID: 3672
|
|
[Token(Token = "0x4000E58")]
|
|
internal const int MAX_LUNISOLAR_YEAR = 2100;
|
|
|
|
// Token: 0x04000E59 RID: 3673
|
|
[Token(Token = "0x4000E59")]
|
|
internal const int MIN_GREGORIAN_YEAR = 1901;
|
|
|
|
// Token: 0x04000E5A RID: 3674
|
|
[Token(Token = "0x4000E5A")]
|
|
internal const int MIN_GREGORIAN_MONTH = 2;
|
|
|
|
// Token: 0x04000E5B RID: 3675
|
|
[Token(Token = "0x4000E5B")]
|
|
internal const int MIN_GREGORIAN_DAY = 19;
|
|
|
|
// Token: 0x04000E5C RID: 3676
|
|
[Token(Token = "0x4000E5C")]
|
|
internal const int MAX_GREGORIAN_YEAR = 2101;
|
|
|
|
// Token: 0x04000E5D RID: 3677
|
|
[Token(Token = "0x4000E5D")]
|
|
internal const int MAX_GREGORIAN_MONTH = 1;
|
|
|
|
// Token: 0x04000E5E RID: 3678
|
|
[Token(Token = "0x4000E5E")]
|
|
internal const int MAX_GREGORIAN_DAY = 28;
|
|
|
|
// Token: 0x04000E5F RID: 3679
|
|
[Token(Token = "0x4000E5F")]
|
|
internal static DateTime minDate;
|
|
|
|
// Token: 0x04000E60 RID: 3680
|
|
[Token(Token = "0x4000E60")]
|
|
internal static DateTime maxDate;
|
|
|
|
// Token: 0x04000E61 RID: 3681
|
|
[Token(Token = "0x4000E61")]
|
|
private static readonly int[,] yinfo;
|
|
}
|
|
}
|