File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,13 @@ public interface IQuantityOfType<out TQuantity> : IQuantity
134
134
where TQuantity : IQuantity
135
135
{
136
136
#if NET
137
- internal static abstract TQuantity Create ( double value , UnitKey unit ) ;
137
+ /// <summary>
138
+ /// Creates an instance of the quantity from a specified value and unit.
139
+ /// </summary>
140
+ /// <param name="value">The numerical value of the quantity.</param>
141
+ /// <param name="unit">The unit of the quantity.</param>
142
+ /// <returns>An instance of the quantity with the specified value and unit.</returns>
143
+ public static abstract TQuantity Create ( double value , UnitKey unit ) ;
138
144
#else
139
145
/// <inheritdoc cref="IQuantity.QuantityInfo"/>
140
146
new IQuantityInstanceInfo < TQuantity > QuantityInfo { get ; }
Original file line number Diff line number Diff line change @@ -121,6 +121,12 @@ interface IQuantityInstanceInfo<out TQuantity> : IQuantityInfo
121
121
{
122
122
/// <inheritdoc cref="IQuantityInfo.Zero" />
123
123
new TQuantity Zero { get ; }
124
-
125
- internal TQuantity Create ( double value , UnitKey unitKey ) ;
124
+
125
+ /// <summary>
126
+ /// Creates an instance of the quantity from a specified value and unit.
127
+ /// </summary>
128
+ /// <param name="value">The numerical value of the quantity.</param>
129
+ /// <param name="unitKey">The unit key of the quantity.</param>
130
+ /// <returns>An instance of the quantity with the specified value and unit.</returns>
131
+ public TQuantity Create ( double value , UnitKey unitKey ) ;
126
132
}
You can’t perform that action at this time.
0 commit comments