Permalink
Browse files

Make the strongly typed Add method virtual

  • Loading branch information...
1 parent e32d411 commit 1c395b54aefb8f00591102b27d1a74752a39a744 @niik niik committed with paulcbetts Mar 31, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 ReactiveUI/ReactiveCollection.cs
View
4 ReactiveUI/ReactiveCollection.cs
@@ -500,7 +500,7 @@ IEnumerator IEnumerable.GetEnumerator()
return GetEnumerator();
}
- public void Add(T item)
+ public virtual void Add(T item)
{
InsertItem(_inner.Count, item);
}
@@ -553,7 +553,7 @@ public virtual void RemoveAt(int index)
set { SetItem(index, value); }
}
- public virtual int Add(object value)
+ public int Add(object value)
{
Add((T)value);
return Count - 1;

0 comments on commit 1c395b5

Please sign in to comment.