Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CodeGen/Generators/NanoFrameworkGen/QuantityGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private double GetValueInBaseUnit()
}

Writer.WL($@"
_ => throw new NotImplementedException($""Can not convert {{Unit}} to base units."")
_ => throw new NotImplementedException($""Can't convert {{Unit}} to base units."")
}};
}}

Expand All @@ -223,7 +223,7 @@ private double GetValueAs({_unitEnumName} unit)
}

Writer.WL(@"
_ => throw new NotImplementedException($""Can not convert {Unit} to {unit}."")
_ => throw new NotImplementedException($""Can't convert {Unit} to {unit}."")
};
}

Expand Down
6 changes: 3 additions & 3 deletions CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ namespace UnitsNet
}}");
return Writer.ToString();
}

private void GenerateInterfaceExtensions()
{
// generate the base interface (either IVectorQuantity, IAffineQuantity or ILogarithmicQuantity)
Expand Down Expand Up @@ -158,7 +158,7 @@ private void GenerateInterfaceExtensions()
IEquatable<{_quantity.Name}>,
IFormattable");
}

private void GenerateQuantityInfo()
{
var quantityInfoClassName = $"{_quantity.Name}Info";
Expand Down Expand Up @@ -1081,7 +1081,7 @@ public double As(UnitSystem unitSystem)
else
{{
// No possible conversion
throw new NotImplementedException($""Can not convert {{Unit}} to {{unit}}."");
throw new UnitNotFoundException($""Can't convert {{Unit}} to {{unit}}."");
}}
}}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions UnitsNet.NanoFramework/GeneratedCode/Quantities/Angle.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions UnitsNet.NanoFramework/GeneratedCode/Quantities/Area.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions UnitsNet.NanoFramework/GeneratedCode/Quantities/BitRate.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions UnitsNet.NanoFramework/GeneratedCode/Quantities/Density.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions UnitsNet.NanoFramework/GeneratedCode/Quantities/Duration.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading