Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit 3ed46c0

Browse files
author
Alexis Huvier
committed
feat(event): Add ValueEventArgs
1 parent eeb375c commit 3ed46c0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
namespace SharpEngine.Utils.EventArgs;
2+
3+
/// <summary>
4+
/// Event Args which have old and new value
5+
/// </summary>
6+
/// <typeparam name="T">Type of Value</typeparam>
7+
public class ValueEventArgs<T>: System.EventArgs
8+
{
9+
/// <summary>
10+
/// Old Value
11+
/// </summary>
12+
public T OldValue { get; init; }
13+
14+
/// <summary>
15+
/// New Value
16+
/// </summary>
17+
public T NewValue { get; init; }
18+
}

0 commit comments

Comments
 (0)