@@ -116,29 +116,30 @@ public interface IQuantity<TUnitType> : IQuantity where TUnitType : Enum
116
116
}
117
117
118
118
/// <summary>
119
- /// An <see cref="IQuantity{TUnitType}"/> that (in .NET 7+) implements generic math interfaces for equality and comparison .
119
+ /// An <see cref="IQuantity{TUnitType}"/> that (in .NET 7+) implements generic math interfaces for equality, comparison and parsing .
120
120
/// </summary>
121
121
/// <typeparam name="TSelf">The type itself, for the CRT pattern.</typeparam>
122
122
/// <typeparam name="TUnitType">The underlying unit enum type.</typeparam>
123
123
/// <typeparam name="TValueType">The underlying value type for internal representation.</typeparam>
124
- public interface IComparableQuantity < TSelf , TUnitType , TValueType > : IQuantity < TUnitType >
124
+ public interface IQuantity < TSelf , TUnitType , TValueType > : IQuantity < TUnitType >
125
125
#if NET7_0_OR_GREATER
126
126
, IEqualityOperators < TSelf , TSelf , bool >
127
127
, IComparisonOperators < TSelf , TSelf , bool >
128
+ , IParsable < TSelf >
128
129
#endif
129
- where TSelf : IComparableQuantity < TSelf , TUnitType , TValueType >
130
+ where TSelf : IQuantity < TSelf , TUnitType , TValueType >
130
131
where TUnitType : Enum
131
132
where TValueType : struct
132
133
{
133
134
}
134
135
135
136
/// <summary>
136
- /// An <see cref="IComparableQuantity {TSelf, TUnitType, TValueType}"/> that (in .NET 7+) implements generic math interfaces for arithmetic operations.
137
+ /// An <see cref="IQuantity {TSelf, TUnitType, TValueType}"/> that (in .NET 7+) implements generic math interfaces for arithmetic operations.
137
138
/// </summary>
138
139
/// <typeparam name="TSelf">The type itself, for the CRT pattern.</typeparam>
139
140
/// <typeparam name="TUnitType">The underlying unit enum type.</typeparam>
140
141
/// <typeparam name="TValueType">The underlying value type for internal representation.</typeparam>
141
- public interface IArithmeticQuantity < TSelf , TUnitType , TValueType > : IComparableQuantity < TSelf , TUnitType , TValueType >
142
+ public interface IArithmeticQuantity < TSelf , TUnitType , TValueType > : IQuantity < TSelf , TUnitType , TValueType >
142
143
#if NET7_0_OR_GREATER
143
144
, IAdditionOperators < TSelf , TSelf , TSelf >
144
145
, IAdditiveIdentity < TSelf , TSelf >
0 commit comments