3 writes to _dayNumber
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (3)
39_dayNumber = dayNumber; 58public DateOnly(int year, int month, int day) => _dayNumber = DayNumberFromDateTime(new DateTime(year, month, day)); 67public DateOnly(int year, int month, int day, Calendar calendar) => _dayNumber = DayNumberFromDateTime(new DateTime(year, month, day, calendar));
24 references to _dayNumber
System.Private.CoreLib (24)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (24)
34internal DateTime GetEquivalentDateTime() => DateTime.CreateUnchecked(_dayNumber * TimeSpan.TicksPerDay); 101public DayOfWeek DayOfWeek => (DayOfWeek)((_dayNumber + 1) % 7); 111public int DayNumber => (int)_dayNumber; 123uint newDayNumber = _dayNumber + (uint)value; 154public static bool operator ==(DateOnly left, DateOnly right) => left._dayNumber == right._dayNumber; 162public static bool operator !=(DateOnly left, DateOnly right) => left._dayNumber != right._dayNumber; 170public static bool operator >(DateOnly left, DateOnly right) => left._dayNumber > right._dayNumber; 178public static bool operator >=(DateOnly left, DateOnly right) => left._dayNumber >= right._dayNumber; 186public static bool operator <(DateOnly left, DateOnly right) => left._dayNumber < right._dayNumber; 194public static bool operator <=(DateOnly left, DateOnly right) => left._dayNumber <= right._dayNumber; 217public DateTime ToDateTime(TimeOnly time) => DateTime.CreateUnchecked(_dayNumber * TimeSpan.TicksPerDay + time.Ticks); 239public int CompareTo(DateOnly value) => _dayNumber.CompareTo(value._dayNumber); 262public bool Equals(DateOnly value) => _dayNumber == value._dayNumber; 269public override bool Equals([NotNullWhen(true)] object? value) => value is DateOnly dateOnly && _dayNumber == dateOnly._dayNumber; 275public override int GetHashCode() => (int)_dayNumber;