diff --git a/AssetRipper.Primitives/UnityGuid.cs b/AssetRipper.Primitives/UnityGuid.cs index 47861ca..656c292 100644 --- a/AssetRipper.Primitives/UnityGuid.cs +++ b/AssetRipper.Primitives/UnityGuid.cs @@ -13,6 +13,9 @@ namespace AssetRipper.Primitives; [System.Text.Json.Serialization.JsonConverter(typeof(UnityGuidJsonConverter))] #endif public readonly record struct UnityGuid +#if NET7_0_OR_GREATER + : System.Numerics.IEqualityOperators +#endif { public UnityGuid(Guid guid) { diff --git a/AssetRipper.Primitives/Utf8String.cs b/AssetRipper.Primitives/Utf8String.cs index a3d0b3f..e43f221 100644 --- a/AssetRipper.Primitives/Utf8String.cs +++ b/AssetRipper.Primitives/Utf8String.cs @@ -11,7 +11,12 @@ namespace AssetRipper.Primitives; /// /// Conversions to and from are handled by . /// -public sealed class Utf8String : IEquatable +public sealed class Utf8String : +#if NET7_0_OR_GREATER + System.Numerics.IEqualityOperators, + System.Numerics.IEqualityOperators, +#endif + IEquatable { private readonly byte[] data; private string? cachedString;