Skip to content

Commit

Permalink
Add bulk operations to Collection<T>
Browse files Browse the repository at this point in the history
This fixes dotnet#1091.
  • Loading branch information
terrajobst committed May 2, 2019
1 parent e94d426 commit 9aa9ee9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/netstandard/ref/System.Collections.ObjectModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public Collection(System.Collections.Generic.IList<T> list) { }
bool System.Collections.IList.IsReadOnly { get { throw null; } }
object System.Collections.IList.this[int index] { get { throw null; } set { } }
public void Add(T item) { }
public void AddRange(System.Collections.Generic.IEnumerable<T> collection) { }
public void Clear() { }
protected virtual void ClearItems() { }
public bool Contains(T item) { throw null; }
Expand All @@ -26,9 +27,15 @@ public void CopyTo(T[] array, int index) { }
public int IndexOf(T item) { throw null; }
public void Insert(int index, T item) { }
protected virtual void InsertItem(int index, T item) { }
protected virtual void InsertItemsRange(int index, System.Collections.Generic.IEnumerable<T> collection) { }
public void InsertRange(int index, System.Collections.Generic.IEnumerable<T> collection) { }
public bool Remove(T item) { throw null; }
public void RemoveAt(int index) { }
protected virtual void RemoveItem(int index) { }
protected virtual void RemoveItemsRange(int index, int count) { }
public void RemoveRange(int index, int count) { }
protected virtual void ReplaceItemsRange(int index, int count, System.Collections.Generic.IEnumerable<T> collection) { }
public void ReplaceRange(int index, int count, System.Collections.Generic.IEnumerable<T> collection) { }
protected virtual void SetItem(int index, T item) { }
void System.Collections.ICollection.CopyTo(System.Array array, int index) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
Expand Down

0 comments on commit 9aa9ee9

Please sign in to comment.