mirror of
https://github.com/kwsch/NHSE.git
synced 2026-08-11 20:26:12 -05:00
Update to .NET 10 (#683)
This commit is contained in:
@@ -1,21 +1,20 @@
|
||||
namespace NHSE.Core
|
||||
namespace NHSE.Core;
|
||||
|
||||
public readonly ref struct EncryptedSaveFile
|
||||
{
|
||||
public readonly ref struct EncryptedSaveFile
|
||||
public readonly byte[] Data;
|
||||
public readonly byte[] Header;
|
||||
|
||||
public EncryptedSaveFile(byte[] data, byte[] header)
|
||||
{
|
||||
public readonly byte[] Data;
|
||||
public readonly byte[] Header;
|
||||
|
||||
public EncryptedSaveFile(byte[] data, byte[] header)
|
||||
{
|
||||
Data = data;
|
||||
Header = header;
|
||||
}
|
||||
|
||||
#region Equality Comparison
|
||||
public override bool Equals(object obj) => false;
|
||||
public override int GetHashCode() => Data.GetHashCode();
|
||||
public static bool operator !=(EncryptedSaveFile left, EncryptedSaveFile right) => !(left == right);
|
||||
public static bool operator ==(EncryptedSaveFile left, EncryptedSaveFile right) => left.Data == right.Data && left.Header == right.Header;
|
||||
#endregion
|
||||
Data = data;
|
||||
Header = header;
|
||||
}
|
||||
}
|
||||
|
||||
#region Equality Comparison
|
||||
public override bool Equals(object? obj) => false;
|
||||
public override int GetHashCode() => Data.GetHashCode();
|
||||
public static bool operator !=(EncryptedSaveFile left, EncryptedSaveFile right) => !(left == right);
|
||||
public static bool operator ==(EncryptedSaveFile left, EncryptedSaveFile right) => left.Data == right.Data && left.Header == right.Header;
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user