2 writes to _ticks
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (2)
87_ticks = (ulong)ticks; 91internal TimeOnly(ulong ticks) => _ticks = ticks;
35 references to _ticks
System.Private.CoreLib (35)
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (35)
96public int Hour => (int)(_ticks / TimeSpan.TicksPerHour); 101public int Minute => (int)((uint)(_ticks / TimeSpan.TicksPerMinute) % (uint)TimeSpan.MinutesPerHour); 106public int Second => (int)((uint)(_ticks / TimeSpan.TicksPerSecond) % (uint)TimeSpan.SecondsPerMinute); 111public int Millisecond => (int)((uint)(_ticks / TimeSpan.TicksPerMillisecond) % (uint)TimeSpan.MillisecondsPerSecond); 116public int Microsecond => (int)(_ticks / TimeSpan.TicksPerMicrosecond % (uint)TimeSpan.MicrosecondsPerMillisecond); 121public int Nanosecond => (int)(_ticks % TimeSpan.TicksPerMicrosecond * TimeSpan.NanosecondsPerTick); 126public long Ticks => (long)_ticks; 128private TimeOnly AddTicks(long ticks) => new TimeOnly((_ticks + TimeSpan.TicksPerDay + (ulong)(ticks % TimeSpan.TicksPerDay)) % TimeSpan.TicksPerDay); 133newTicks += (long)_ticks; 210ulong time = _ticks; 211ulong startTicks = start._ticks; 212ulong endTicks = end._ticks; 226public static bool operator ==(TimeOnly left, TimeOnly right) => left._ticks == right._ticks; 235public static bool operator !=(TimeOnly left, TimeOnly right) => left._ticks != right._ticks; 244public static bool operator >(TimeOnly left, TimeOnly right) => left._ticks > right._ticks; 253public static bool operator >=(TimeOnly left, TimeOnly right) => left._ticks >= right._ticks; 262public static bool operator <(TimeOnly left, TimeOnly right) => left._ticks < right._ticks; 271public static bool operator <=(TimeOnly left, TimeOnly right) => left._ticks <= right._ticks; 281long diff = (long)(t1._ticks - t2._ticks); 384public TimeSpan ToTimeSpan() => new TimeSpan((long)_ticks); 386internal DateTime ToDateTime() => DateTime.CreateUnchecked((long)_ticks); 398public int CompareTo(TimeOnly value) => _ticks.CompareTo(value._ticks); 426public bool Equals(TimeOnly value) => _ticks == value._ticks; 433public override bool Equals([NotNullWhen(true)] object? value) => value is TimeOnly timeOnly && _ticks == timeOnly._ticks; 441ulong ticks = _ticks;