> 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
[quoted text clipped - 4 lines]
> class and the container simply has to use reflection to determine if
> the class implements a PropertyChanged event?
On Mar 27, 10:46 am, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac...@gmail.com> wrote:
> 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.
Ignacio Machin ( .NET/ C# MVP ) - 27 Mar 2008 18:51 GMT
> On Mar 27, 10:46 am, "Ignacio Machin ( .NET/ C# MVP )"
>
[quoted text clipped - 7 lines]
> 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
}