Files
SPT-Server-Build/Core/Utils/Json/DictionaryOrList.cs
T
2025-01-08 23:22:23 +00:00

11 lines
311 B
C#

namespace Core.Utils.Json;
public class DictionaryOrList<K, V>(Dictionary<K, V>? dictionary, List<V>? list)
{
public Dictionary<K, V>? Dictionary { get; } = dictionary;
public List<V>? List { get; } = list;
public bool IsList => List != null;
public bool IsDictionary => Dictionary != null;
}