diff options
Diffstat (limited to 'Plugins/MonoGame.Extended/source/MonoGame.Extended/Collections/ItemEventArgs.cs')
-rw-r--r-- | Plugins/MonoGame.Extended/source/MonoGame.Extended/Collections/ItemEventArgs.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Plugins/MonoGame.Extended/source/MonoGame.Extended/Collections/ItemEventArgs.cs b/Plugins/MonoGame.Extended/source/MonoGame.Extended/Collections/ItemEventArgs.cs new file mode 100644 index 0000000..0da853b --- /dev/null +++ b/Plugins/MonoGame.Extended/source/MonoGame.Extended/Collections/ItemEventArgs.cs @@ -0,0 +1,20 @@ +using System; + +namespace MonoGame.Extended.Collections +{ + /// <summary> + /// Arguments class for collections wanting to hand over an item in an event + /// </summary> + public class ItemEventArgs<T> : EventArgs + { + /// <summary>Initializes a new event arguments supplier</summary> + /// <param name="item">Item to be supplied to the event handler</param> + public ItemEventArgs(T item) + { + Item = item; + } + + /// <summary>Obtains the collection item the event arguments are carrying</summary> + public T Item { get; } + } +}
\ No newline at end of file |