forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPropertyChangedEventArgs.cs
More file actions
46 lines (43 loc) · 1.47 KB
/
Copy pathPropertyChangedEventArgs.cs
File metadata and controls
46 lines (43 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//-----------------------------------------------------------------------
// <copyright file="PropertyChangedEventArgs.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Microsoft.Management.UI.Internal
{
using System;
/// <summary>
/// An EventArgs which holds the old and new values for a property change.
/// </summary>
/// <typeparam name="T">The property type.</typeparam>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.MSInternal", "CA903:InternalNamespaceShouldNotContainPublicTypes")]
public class PropertyChangedEventArgs<T> : EventArgs
{
/// <summary>
/// Creates an instance of PropertyChangedEventArgs.
/// </summary>
/// <param name="oldValue">The old value.</param>
/// <param name="newValue">The new, current, value.</param>
public PropertyChangedEventArgs(T oldValue, T newValue)
{
this.OldValue = oldValue;
this.NewValue = newValue;
}
/// <summary>
/// Gets the previous value for the property.
/// </summary>
public T OldValue
{
get;
private set;
}
/// <summary>
/// Gets the new value for the property.
/// </summary>
public T NewValue
{
get;
private set;
}
}
}