jellyfin-server/MediaBrowser.Model/Events/GenericEventArgs.cs

34 lines
900 B
C#
Raw Normal View History

2013-02-21 01:33:05 +00:00
using System;
2014-05-08 20:09:53 +00:00
namespace MediaBrowser.Model.Events
2013-02-21 01:33:05 +00:00
{
/// <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; }
2014-08-10 22:13:17 +00:00
/// <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>
/// Initializes a new instance of the <see cref="GenericEventArgs{T}"/> class.
/// </summary>
public GenericEventArgs()
{
}
2013-02-21 01:33:05 +00:00
}
}