2019-01-13 15:02:23 -05:00
|
|
|
using System;
|
2018-12-27 18:27:57 -05:00
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Events
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-02-03 19:49:27 -05:00
|
|
|
/// Provides a generic EventArgs subclass that can hold any kind of object.
|
2018-12-27 18:27:57 -05:00
|
|
|
/// </summary>
|
2020-08-13 19:14:03 -04:00
|
|
|
/// <typeparam name="T">The type of this event.</typeparam>
|
2018-12-27 18:27:57 -05:00
|
|
|
public class GenericEventArgs<T> : EventArgs
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="GenericEventArgs{T}"/> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="arg">The argument.</param>
|
|
|
|
public GenericEventArgs(T arg)
|
|
|
|
{
|
|
|
|
Argument = arg;
|
|
|
|
}
|
2020-08-13 19:14:03 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the argument.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The argument.</value>
|
|
|
|
public T Argument { get; }
|
2018-12-27 18:27:57 -05:00
|
|
|
}
|
|
|
|
}
|