PropertyChanged and .Net 1.1

C

Cartoper

I work in an bit of a crazy enviornment. Some projects are done
in .Net 3.5, but others have to be done in .Net 1.1. Well, I am
working on a .Net 1.1 project and need to implement the
PropertyChanged event. In the .Net 3.5 world I am accustom to
implementing the INotifyPropertyChanged, is there such an interface
in .Net 1.1 or do you simply implement a PropertyChanged event in your
class and the container simply has to use reflection to determine if
the class implements a PropertyChanged event?
 
I

Ignacio Machin ( .NET/ C# MVP )

I work in an bit of a crazy enviornment.  Some projects are done
in .Net 3.5, but others have to be done in .Net 1.1.  Well, I am
working on a .Net 1.1 project and need to implement the
PropertyChanged event.  In the .Net 3.5 world I am accustom to
implementing the INotifyPropertyChanged, is there such an interface
in .Net 1.1 or do you simply implement a PropertyChanged event in your
class and the container simply has to use reflection to determine if
the class implements a PropertyChanged event?

Hi,

You should check the help, I would say that there exist a
INotifyPropertyChanged in 1.1 or something similar otherwise.
At the end, a control should be informed when a property was changed
during design mode right?
 
C

Cartoper

You should check the help, I would say that there exist a
INotifyPropertyChanged in 1.1 or something similar otherwise.
At the end, a control should be informed when a property was changed
during design mode right?

I did check and I did not see a INotifyPropertyChanged interface. I
recall reading long ago that INotifyPropertyChanged was new in .Net
2.0.
 
I

Ignacio Machin ( .NET/ C# MVP )

I did check and I did not see a INotifyPropertyChanged interface.  I
recall reading long ago that INotifyPropertyChanged was new in .Net
2.0.

Hi,

You are correct, it's new in 2.0
I still think there should be something similar in 1.1

In the worst case scenario you do not need to use reflection, just
declare your own interface and use a casting:

IMyNotifyPropertyChanged obj = myControl as IMyNotifyPropertyChanged;
if ( obj != null )
{
//it does implement it
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top