7 writes to _offsetMinutes
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (7)
77
_offsetMinutes
= validOffsetMinutes;
95
_offsetMinutes
= ValidateOffset(offset);
100
_offsetMinutes
= 0;
124
_offsetMinutes
= ValidateOffset(offset);
143
_offsetMinutes
= ValidateOffset(offset);
178
_offsetMinutes
= ValidateOffset(offset);
639
_offsetMinutes
= (short)info.GetValue("OffsetMinutes", typeof(short))!; // Do not rename (binary serialization)
7 references to _offsetMinutes
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (7)
349
private DateTime ClockDateTime => DateTime.CreateUnchecked(UtcTicks +
_offsetMinutes
* TimeSpan.TicksPerMinute);
414
public TimeSpan Offset => new TimeSpan(
_offsetMinutes
* TimeSpan.TicksPerMinute);
419
public int TotalOffsetMinutes =>
_offsetMinutes
;
533
private DateTimeOffset Add(DateTime dateTime) => new DateTimeOffset(
_offsetMinutes
, ValidateDate(dateTime, Offset));
571
public bool EqualsExact(DateTimeOffset other) => UtcTicks == other.UtcTicks &&
_offsetMinutes
== other.
_offsetMinutes
;
631
info.AddValue("OffsetMinutes", (short)
_offsetMinutes
); // Do not rename (binary serialization)