mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
26 lines
711 B
C#
26 lines
711 B
C#
using System;
|
|
|
|
namespace MediaBrowser.Model.Events
|
|
{
|
|
/// <summary>
|
|
/// Provides a generic EventArgs subclass that can hold any kind of object.
|
|
/// </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;
|
|
}
|
|
}
|
|
}
|