Files
view-by-distance-mklink-con…/Shared/Models/FilePair.cs
Mike Phares 86f0ff0486 Removed Obsolete A_Property Methods
Changed GetDimensions to handle a stream at the end and one exit

Switched to using Action? over IDlibDotNet for Tick method

Switched to using AsReadOnly over new()

Moved Meta Base to Shared
2025-06-30 16:38:30 -07:00

26 lines
739 B
C#

using System.Collections.ObjectModel;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace View_by_Distance.Shared.Models;
public record FilePair(FilePath FilePath,
bool IsUnique,
bool? IsNotUniqueAndNeedsReview,
ReadOnlyCollection<FilePath> Collection,
FilePath? Match)
{
public override string ToString()
{
string result = JsonSerializer.Serialize(this, FilePairSourceGenerationContext.Default.FilePair);
return result;
}
}
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSerializable(typeof(FilePair))]
public partial class FilePairSourceGenerationContext : JsonSerializerContext
{
}