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
26 lines
739 B
C#
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
|
|
{
|
|
} |