Beispiel #1
0
        /// <summary>
        /// Compares current instance of <see cref="TextSpan"/> with another.
        /// </summary>
        public int CompareTo(TimelineItem <T> other)
        {
            var diff = this.Time - other.Time;

            return((int)(diff));
        }
Beispiel #2
0
 /// <summary>
 /// Determines if current instance of <see cref="TextSpan"/> is equal to another.
 /// </summary>
 public bool Equals(TimelineItem <T> other)
 {
     return(Time == other.Time);
 }