You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
716 B
27 lines
716 B
using System;
|
|
|
|
namespace Jellyfin.Data.Events
|
|
{
|
|
/// <summary>
|
|
/// Provides a generic EventArgs subclass that can hold any kind of object.
|
|
/// </summary>
|
|
/// <typeparam name="T">The type of this event.</typeparam>
|
|
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;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the argument.
|
|
/// </summary>
|
|
/// <value>The argument.</value>
|
|
public T Argument { get; }
|
|
}
|
|
}
|