- tweak: remove dependency from Nebula.Shared
This commit is contained in:
16
Nebula.UpdateResolver/Configuration/ConVar.cs
Normal file
16
Nebula.UpdateResolver/Configuration/ConVar.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
namespace Nebula.UpdateResolver.Configuration;
|
||||
|
||||
public class ConVar<T>
|
||||
{
|
||||
public ConVar(string name, T? defaultValue = default)
|
||||
{
|
||||
Name = name ?? throw new ArgumentNullException(nameof(name));
|
||||
DefaultValue = defaultValue;
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
public Type Type => typeof(T);
|
||||
public T? DefaultValue { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user