Skip to content

Instantly share code, notes, and snippets.

@AdamWhiteHat
Created March 20, 2022 01:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamWhiteHat/6084efaa86a66049ca7f3f962c6a1141 to your computer and use it in GitHub Desktop.
Save AdamWhiteHat/6084efaa86a66049ca7f3f962c6a1141 to your computer and use it in GitHub Desktop.
INotifyPropertyChangedEx
namespace ComponentModelEx
{
public delegate void PropertyChangedExEventHandler(object sender, PropertyChangedExEventArgs e);
public interface INotifyPropertyChangedEx
{
event PropertyChangedExEventHandler PropertyChangedEx;
}
}
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