Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

PropertyChanged and .Net 1.1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cartoper - 27 Mar 2008 14:25 GMT
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?
Ignacio Machin ( .NET/ C# MVP ) - 27 Mar 2008 15:46 GMT
> 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?

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?
Cartoper - 27 Mar 2008 15:48 GMT
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
}

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.