I want to override Add(MyType t)
for a class derived from ObservableCollection<MyType>
. However I cannot override Add. Why?
I therefore added AddIem(MyType t)
and use that function instead, which works fine. But I want to prevent someone erroneously using Add
so I implemented Add (throwing an exception). But that doesn't hide the Add method of the ObservableCollection. Any idea why and how I could achieve my goal?