Skip to content

Commit

Permalink
Fix build failures
Browse files Browse the repository at this point in the history
  • Loading branch information
halgari committed Oct 24, 2024
1 parent a0f72d8 commit 037476b
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,19 @@
using NexusMods.MnemonicDB.Abstractions;
using NexusMods.MnemonicDB.Abstractions.Attributes;
using NexusMods.MnemonicDB.Abstractions.ElementComparers;
using NexusMods.MnemonicDB.Abstractions.ValueSerializers;

namespace NexusMods.Abstractions.Collections.Attributes;

/// <summary>
/// An attribute representing an MD5 hash value.
/// </summary>
public class Md5Attribute(string ns, string name) : ScalarAttribute<Md5HashValue, UInt128>(ValueTag.UInt128, ns, name)
public class Md5Attribute(string ns, string name) : ScalarAttribute<Md5HashValue, UInt128, UInt128Serializer>(ns, name)
{
/// <inheritdoc />
protected override UInt128 ToLowLevel(Md5HashValue value)
{
return value.Value;
}
protected override UInt128 ToLowLevel(Md5HashValue value) => value.Value;

/// <inheritdoc />
protected override Md5HashValue FromLowLevel(UInt128 value, AttributeResolver resolver)
{
return Md5HashValue.From(value);
}
protected override Md5HashValue FromLowLevel(UInt128 value, AttributeResolver resolver)
=> Md5HashValue.From(value);
}

0 comments on commit 037476b

Please sign in to comment.