8 writes to month
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (8)
1035raw.month = tokenValue; 2194result.Month = raw.month = dtok.num; 2248if (!dtfi.YearMonthAdjustment(ref raw.year, ref raw.month, true)) 2260if (!dtfi.YearMonthAdjustment(ref raw.year, ref raw.month, true)) 2281if (!dtfi.YearMonthAdjustment(ref result.Year, ref raw.month, true)) 2291if (!dtfi.YearMonthAdjustment(ref result.Year, ref raw.month, true)) 2303if (!dtfi.YearMonthAdjustment(ref raw.year, ref raw.month, true)) 6016month = -1;
20 references to month
System.Private.CoreLib (20)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (20)
987if (raw.month == -1) 1690if (!TryAdjustYear(ref result, raw.GetNumber(0), out int year) || !SetDateYMD(ref result, year, raw.month, 1)) 1700if (!SetDateYMD(ref result, result.Year, raw.month, raw.GetNumber(0))) 1721result.Month = raw.month; 1769if (!TryAdjustYear(ref result, raw.GetNumber(0), out int year) || !SetDateYMD(ref result, year, raw.month, 1)) 1779if (!SetDateYMD(ref result, result.Year, raw.month, raw.GetNumber(0))) 1808if (TryAdjustYear(ref result, n2, out year) && result.calendar.IsValidDay(year, raw.month, n1, result.era)) 1810result.SetDate(year, raw.month, n1); // MDY 1814else if (TryAdjustYear(ref result, n1, out year) && result.calendar.IsValidDay(year, raw.month, n2, result.era)) 1816result.SetDate(year, raw.month, n2); // YMD 1823if (TryAdjustYear(ref result, n1, out year) && result.calendar.IsValidDay(year, raw.month, n2, result.era)) 1825result.SetDate(year, raw.month, n2); // YMD 1829else if (TryAdjustYear(ref result, n2, out year) && result.calendar.IsValidDay(year, raw.month, n1, result.era)) 1831result.SetDate(year, raw.month, n1); // DMY 1838if (TryAdjustYear(ref result, n2, out year) && result.calendar.IsValidDay(year, raw.month, n1, result.era)) 1840result.SetDate(year, raw.month, n1); // DMY 1844else if (TryAdjustYear(ref result, n1, out year) && result.calendar.IsValidDay(year, raw.month, n2, result.era)) 1846result.SetDate(year, raw.month, n2); // YMD 1937if (SetDateYMD(ref result, raw.year, raw.month, raw.GetNumber(0))) 1973if (SetDateYMD(ref result, raw.year, raw.month, 1))