< Summary - Jellyfin

Information
Class: Jellyfin.Data.Events.GenericEventArgs<T>
Assembly: Jellyfin.Data
File(s): /srv/git/jellyfin/Jellyfin.Data/Events/GenericEventArgs.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 26
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/srv/git/jellyfin/Jellyfin.Data/Events/GenericEventArgs.cs

#LineLine coverage
 1using System;
 2
 3namespace Jellyfin.Data.Events
 4{
 5    /// <summary>
 6    /// Provides a generic EventArgs subclass that can hold any kind of object.
 7    /// </summary>
 8    /// <typeparam name="T">The type of this event.</typeparam>
 9    public class GenericEventArgs<T> : EventArgs
 10    {
 11        /// <summary>
 12        /// Initializes a new instance of the <see cref="GenericEventArgs{T}"/> class.
 13        /// </summary>
 14        /// <param name="arg">The argument.</param>
 49615        public GenericEventArgs(T arg)
 16        {
 49617            Argument = arg;
 49618        }
 19
 20        /// <summary>
 21        /// Gets the argument.
 22        /// </summary>
 23        /// <value>The argument.</value>
 24        public T Argument { get; }
 25    }
 26}

Methods/Properties

.ctor(T)