8 writes to year
mscorlib (8)
system\globalization\datetimeparse.cs (8)
676
raw.
year
= tokenValue;
870
raw.
year
= tokenValue;
2065
result.Year = raw.
year
= dtok.num;
2120
raw.
year
= raw.GetNumber(1);
2121
if (!dtfi.YearMonthAdjustment(ref raw.
year
, ref raw.month, true)) {
2131
if (!dtfi.YearMonthAdjustment(ref raw.
year
, ref raw.month, true)) {
2153
if (!dtfi.YearMonthAdjustment(ref raw.
year
, ref raw.month, true)) {
4938
year
= -1;
12 references to year
mscorlib (12)
system\globalization\datetimeparse.cs (12)
674
if (raw.
year
== -1)
869
if (raw.
year
== -1) {
1786
if (SetDateYMD(ref result, raw.
year
, n2, n1)) {
1792
if (SetDateYMD(ref result, raw.
year
, n1, n2)) {
1819
if (SetDateYMD(ref result, raw.
year
, n1, n2)) {
1824
if (SetDateYMD(ref result, raw.
year
, n2, n1)) {
1842
if (SetDateYMD(ref result, raw.
year
, raw.month, raw.GetNumber(0))) {
1858
if (SetDateYMD(ref result, raw.
year
, raw.GetNumber(0), 1))
1875
if (SetDateYMD(ref result, raw.
year
, raw.month, 1))
2024
if (TryAdjustYear(ref result, raw.
year
, out result.Year) && SetDateYMD(ref result, result.Year, raw.GetNumber(0), raw.GetNumber(1))) {
2755
if (raw.
year
< 0 || raw.GetNumber(0) < 0 || raw.GetNumber(1) < 0) {
2831
if (!calendar.TryToDateTime(raw.
year
, raw.GetNumber(0), raw.GetNumber(1),