aa/Shared/Models/CombinedEnumAndIndex.cs
Mike Phares c15c854481 Ready to test DownloadFile
DirectoryDictionary

Add http file

.7-Question

JustMediaDate

CombinedEnumAndIndex
2025-03-08 17:28:30 -07:00

23 lines
657 B
C#

using System.Text.Json;
using System.Text.Json.Serialization;
namespace View_by_Distance.Shared.Models;
public record CombinedEnumAndIndex(string Combined,
byte Enum,
int Index)
{
public override string ToString()
{
string result = JsonSerializer.Serialize(this, CombinedEnumAndIndexSourceGenerationContext.Default.CombinedEnumAndIndex);
return result;
}
}
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSerializable(typeof(CombinedEnumAndIndex))]
internal partial class CombinedEnumAndIndexSourceGenerationContext : JsonSerializerContext
{
}