Skip to content

Commit 01d0108

Browse files
committed
Add HowMuch.ToString()
1 parent cfa4f02 commit 01d0108

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

UnitsNet.Tests/CustomQuantities/HowMuch.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public IQuantity ToUnit(Enum unit)
4949

5050
public IQuantity ToUnit(UnitSystem unitSystem) => throw new NotImplementedException();
5151

52+
public override string ToString() => $"{Value} {Unit}";
5253
public string ToString(string format, IFormatProvider formatProvider) => $"HowMuch ({format}, {formatProvider})";
5354
public string ToString(IFormatProvider provider) => $"HowMuch ({provider})";
5455
public string ToString(IFormatProvider provider, int significantDigitsAfterRadix) => $"HowMuch ({provider}, {significantDigitsAfterRadix})";

0 commit comments

Comments
 (0)