summaryrefslogtreecommitdiff
path: root/Plugins/MonoGame.Extended/source/MonoGame.Extended/Collections/ItemEventArgs.cs
blob: 0da853b5dcf1b475c7df0a35373ed0fc701f3a48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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; }
    }
}