12 writes to _dateTime
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (12)
76
_dateTime
= validDateTime;
96
_dateTime
= ValidateDate(dateTime, offset);
101
_dateTime
= DateTime.SpecifyKind(dateTime, DateTimeKind.Unspecified);
125
_dateTime
= ValidateDate(dateTime, offset);
147
_dateTime
= ValidateDate(new DateTime(year, month, day, hour, minute, second), offset);
151
_dateTime
= WithLeapSecond(year, month, day, hour, minute, offset);
170
_dateTime
= DateTime.CreateUnchecked(UtcTicks + (uint)millisecond * (uint)TimeSpan.TicksPerMillisecond);
182
_dateTime
= ValidateDate(calendar.ToDateTime(year, month, day, hour, minute, second, millisecond), offset);
186
_dateTime
= WithLeapSecond(calendar, year, month, day, hour, minute, millisecond, offset);
255
_dateTime
= DateTime.CreateUnchecked(UtcTicks + (uint)microsecond * (uint)TimeSpan.TicksPerMicrosecond);
329
_dateTime
= DateTime.CreateUnchecked(UtcTicks + (uint)microsecond * (uint)TimeSpan.TicksPerMicrosecond);
638
_dateTime
= (DateTime)info.GetValue("DateTime", typeof(DateTime))!; // Do not rename (binary serialization)
7 references to _dateTime
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (7)
161
return value.
_dateTime
;
196
return value.
_dateTime
;
336
public DateTime UtcDateTime => DateTime.CreateUnchecked((long)(
_dateTime
._dateData | DateTime.KindUtc));
342
public DateTimeOffset ToOffset(TimeSpan offset) => CreateValidateOffset(
_dateTime
+ offset, offset);
432
public long UtcTicks => (long)
_dateTime
._dateData;
630
info.AddValue("DateTime",
_dateTime
); // Do not rename (binary serialization)
811
public DateTimeOffset ToUniversalTime() => new DateTimeOffset(0,
_dateTime
);