IMensuraUnit<U>
All checks were successful
Publish NuGet packages / publish (push) Successful in 52s

This commit is contained in:
melekhin
2026-06-15 09:37:03 +07:00
parent d49374b482
commit 587b6d9ed1
3 changed files with 29 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ using System.Runtime.Serialization;
namespace QWERTYkez.Mensura.Units;
[JsonConverter(typeof(UnitJsonConverter<{typeName}>))]
public readonly partial record struct {typeName} : IEquatable<{typeName}>, IMensuraUnit
public readonly partial record struct {typeName} : IEquatable<{typeName}>, IMensuraUnit, IMensuraUnit<{typeName}>
{
[JsonInclude, DataMember, JsonPropertyName(""v""), Obsolete] // для JSON / EF на случай сбоев, если пробелма с _Value
internal double Value { get => _Value; init => _Value = value; }