Skip to content

Commit

Permalink
Make the strongly typed Add method virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
niik authored and anaisbetts committed Apr 1, 2013
1 parent e32d411 commit 1c395b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReactiveUI/ReactiveCollection.cs
Expand Up @@ -500,7 +500,7 @@ IEnumerator IEnumerable.GetEnumerator()
return GetEnumerator(); return GetEnumerator();
} }


public void Add(T item) public virtual void Add(T item)
{ {
InsertItem(_inner.Count, item); InsertItem(_inner.Count, item);
} }
Expand Down Expand Up @@ -553,7 +553,7 @@ public virtual void RemoveAt(int index)
set { SetItem(index, value); } set { SetItem(index, value); }
} }


public virtual int Add(object value) public int Add(object value)
{ {
Add((T)value); Add((T)value);
return Count - 1; return Count - 1;
Expand Down

0 comments on commit 1c395b5

Please sign in to comment.