Пример #1
0
            public void Remove(TimerTable.TimerData timerData)
            {
                int index = this.list.BinarySearch(timerData, this.TimerComparer);

                if (index >= 0)
                {
                    this.list.RemoveAt(index);
                }
            }
Пример #2
0
            public void Add(TimerTable.TimerData timerData)
            {
                int num = this.list.BinarySearch(timerData, this.TimerComparer);

                if (num < 0)
                {
                    this.list.Insert(~num, timerData);
                }
            }