11 lines
239 B
C#
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;
|
|
}
|