mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-01 00:12:30 +01:00
24 lines
437 B
C#
24 lines
437 B
C#
|
namespace NzbDrone.Common.EnsureThat
|
||
|
{
|
||
|
public abstract class Param
|
||
|
{
|
||
|
public const string DefaultName = "";
|
||
|
|
||
|
public readonly string Name;
|
||
|
|
||
|
protected Param(string name)
|
||
|
{
|
||
|
Name = name;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public class Param<T> : Param
|
||
|
{
|
||
|
public readonly T Value;
|
||
|
|
||
|
internal Param(string name, T value) : base(name)
|
||
|
{
|
||
|
Value = value;
|
||
|
}
|
||
|
}
|
||
|
}
|