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)
161return value._dateTime; 196return value._dateTime; 336public DateTime UtcDateTime => DateTime.CreateUnchecked((long)(_dateTime._dateData | DateTime.KindUtc)); 342public DateTimeOffset ToOffset(TimeSpan offset) => CreateValidateOffset(_dateTime + offset, offset); 432public long UtcTicks => (long)_dateTime._dateData; 630info.AddValue("DateTime", _dateTime); // Do not rename (binary serialization) 811public DateTimeOffset ToUniversalTime() => new DateTimeOffset(0, _dateTime);