checkpoint

This commit is contained in:
2020-04-30 20:40:52 -04:00
parent 9aa367e9f5
commit abba062f4f
28 changed files with 615 additions and 544 deletions

View File

@@ -8,9 +8,20 @@ namespace Foodsoft.Alpm
public string Name { get; }
public string Hash { get; }
public bool Equals(Backup other) => Name == other.Name && Hash == other.Hash;
public override bool Equals(object? obj) => obj is Backup other && Equals(other);
public override int GetHashCode() => HashCode.Combine(Name, Hash);
public bool Equals(Backup other)
{
return Name == other.Name && Hash == other.Hash;
}
public override bool Equals(object? obj)
{
return obj is Backup other && Equals(other);
}
public override int GetHashCode()
{
return HashCode.Combine(Name, Hash);
}
[StructLayout(LayoutKind.Sequential)]
private readonly unsafe struct NativeBackup