I originally posted this in the WindowsForms group but that may not
have been the best place to post it. So, I am reposting here.
--------------------------------------
I am trying to implement the new INotifyProperty Changed interface in my
custom business object. The problem I'm having is with the inheritance
model.
I have a base object called "Person". The object "Employee" inherits
from person and provides additional properties and methods.
I implemented INotifyProperty Changed in the Person base class and
everything worked great. However, how do I implement it in the derived
"Employee" class.
If I implement it the same way, the compiler warns that:
"event 'PropertyChange d' conflicts with event 'PropertyChange d' in the
base class 'Person' and should be declared 'Shadows'."
OK. So I change the event definition to "Shadows". Then, I still get
the following warning:
"'System.Compon entModel.INotif yPropertyChange d.PropertyChang ed' is
already implemented by the base class 'Common.Person' .
Re-implementation of event assumed."
If I ignore BOTH warnings and run it, it works fine. If I designate
the event as "Shadows" and run it, it works fine.
Am I doing this correctly or am I in high weeds?
Any help would be greatly appreciated.
Sincerely,
Glen Wolinsky