2019-01-13 20:02:23 +00:00
|
|
|
using System;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Events
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-02-04 00:49:27 +00:00
|
|
|
/// Provides a generic EventArgs subclass that can hold any kind of object.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <typeparam name="T"></typeparam>
|
|
|
|
public class GenericEventArgs<T> : EventArgs
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the argument.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The argument.</value>
|
|
|
|
public T Argument { get; set; }
|
|
|
|
|
|
|
|
/// <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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|