Created
March 20, 2022 01:00
-
-
Save AdamWhiteHat/6084efaa86a66049ca7f3f962c6a1141 to your computer and use it in GitHub Desktop.
INotifyPropertyChangedEx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ComponentModelEx | |
{ | |
public delegate void PropertyChangedExEventHandler(object sender, PropertyChangedExEventArgs e); | |
public interface INotifyPropertyChangedEx | |
{ | |
event PropertyChangedExEventHandler PropertyChangedEx; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ComponentModelEx | |
{ | |
public class PropertyChangedExEventArgs : PropertyChangedEventArgs | |
{ | |
public object OldValue { get; private set; } | |
public object NewValue { get; private set; } | |
public PropertyChangedExEventArgs(object oldValue, object newValue, string propertyName) | |
: base(propertyName) | |
{ | |
OldValue = oldValue; | |
NewValue = newValue; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment