// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace Microsoft.Management.UI.Internal
{
using System;
///
/// An EventArgs which holds the old and new values for a property change.
///
/// The property type.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.MSInternal", "CA903:InternalNamespaceShouldNotContainPublicTypes")]
public class PropertyChangedEventArgs : EventArgs
{
///
/// Creates an instance of PropertyChangedEventArgs.
///
/// The old value.
/// The new, current, value.
public PropertyChangedEventArgs(T oldValue, T newValue)
{
this.OldValue = oldValue;
this.NewValue = newValue;
}
///
/// Gets the previous value for the property.
///
public T OldValue
{
get;
private set;
}
///
/// Gets the new value for the property.
///
public T NewValue
{
get;
private set;
}
}
}