c# - How is PropertyChangedEventHandler used? -


how propertychangedeventhandler used? can tell me bit of code in class' initalize method does? there class in project working on has private initialize method. , there bit of code in method want discuss.
first, let me describe class. class defined this: public class skoobie : basethingy, iskoobie

so, means class, “skoobie” has 2 parents inheriting from. implications this?

anyway, initalize method this:

private void initialize() {             this.propertychanged += (o, e) =>                 {                      if (e != null)                      {                         // stuff done                      }                  }; } 

now, “propertychanged” member of parent class “basethingy” defined this:

public event propertychangedeventhandler propertychanged; code this.propertychanged += (o, e) =>... about? linq thingy?

this lambda expression ( http://msdn.microsoft.com/en-us/library/bb397687.aspx ) being added propertychanged event.
event defined in inotifypropertychanged interface : http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx
event fundamental things databinding in wpf / silverlight . use setting data object dirty. hope helps.

public class skoobie : basethingy, iskoobie c# not have multiple inheritance. can implement multiple interfaces (in case iskoobie interface , basethingy base class)


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -