Files
SPT-Server-Build/Core/Utils/Json/ListOrT.cs
T
2025-01-08 22:37:10 +00:00

11 lines
239 B
C#

namespace Core.Utils.Json;
public class ListOrT<T>(List<T>? list, T? item)
{
public List<T>? List { get; } = list;
public T? Item { get; } = item;
public bool IsItem => Item != null;
public bool IsList => List != null;
}