Add ObservableFixedSizeRingBuffer.BinarySearch
This commit is contained in:
parent
aa742b3962
commit
d525d9ae02
@ -278,6 +278,30 @@ namespace ObservableCollections
|
||||
}
|
||||
}
|
||||
|
||||
public T[] ToArray()
|
||||
{
|
||||
lock (SyncRoot)
|
||||
{
|
||||
return buffer.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
public int BinarySearch(T item)
|
||||
{
|
||||
lock (SyncRoot)
|
||||
{
|
||||
return buffer.BinarySearch(item);
|
||||
}
|
||||
}
|
||||
|
||||
public int BinarySearch(T item, IComparer<T> comparer)
|
||||
{
|
||||
lock (SyncRoot)
|
||||
{
|
||||
return buffer.BinarySearch(item, comparer);
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerator<T> GetEnumerator()
|
||||
{
|
||||
lock (SyncRoot)
|
||||
|
@ -278,6 +278,30 @@ namespace ObservableCollections
|
||||
}
|
||||
}
|
||||
|
||||
public T[] ToArray()
|
||||
{
|
||||
lock (SyncRoot)
|
||||
{
|
||||
return buffer.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
public int BinarySearch(T item)
|
||||
{
|
||||
lock (SyncRoot)
|
||||
{
|
||||
return buffer.BinarySearch(item);
|
||||
}
|
||||
}
|
||||
|
||||
public int BinarySearch(T item, IComparer<T> comparer)
|
||||
{
|
||||
lock (SyncRoot)
|
||||
{
|
||||
return buffer.BinarySearch(item, comparer);
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerator<T> GetEnumerator()
|
||||
{
|
||||
lock (SyncRoot)
|
||||
|
Loading…
x
Reference in New Issue
Block a user