firstTest
This commit is contained in:
@@ -407,6 +407,9 @@ public readonly partial record struct {typeNameZ} : IMensuraUnit<{typeNameZ}>, I
|
||||
{ get => ({typeNameA})_Value; init => _Value = (double)value; }
|
||||
|
||||
|
||||
public static explicit operator {typeNameZ}(double val) => Unsafe.As<double, {typeNameZ}>(ref val);
|
||||
public static explicit operator double({typeNameZ} unit) => unit._Value;
|
||||
|
||||
|
||||
[JsonIgnore, IgnoreDataMember] public bool IsPositive => _Value >= 0;
|
||||
[JsonIgnore, IgnoreDataMember] public bool IsGreaterThanZero => _Value > 0;
|
||||
|
||||
Reference in New Issue
Block a user