Skip to content

Commit

Permalink
nano: ✏️ Fix xmldoc of MaxValue, MinValue
Browse files Browse the repository at this point in the history
  • Loading branch information
angularsen committed Feb 18, 2024
1 parent 3a2a6e8 commit 1b3647f
Show file tree
Hide file tree
Showing 125 changed files with 623 additions and 623 deletions.
12 changes: 6 additions & 6 deletions CodeGen/Generators/NanoFrameworkGen/QuantityGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,20 @@ public struct {_quantity.Name}
}}
/// <summary>
/// The base unit of Duration, which is Second. All conversions go via this value.
/// The base unit of {_quantity.Name}, which is Second. All conversions go via this value.
/// </summary>
public static {_unitEnumName} BaseUnit {{ get; }} = {_unitEnumName}.{_quantity.BaseUnit};
/// <summary>
/// Represents the largest possible value of Duration
/// Represents the largest possible value of {_quantity.Name}.
/// </summary>");

// Non decimal
Writer.WLCondition(_quantity.ValueType != "decimal", $@"
public static {_quantity.Name} MaxValue {{ get; }} = new {_quantity.Name}({_quantity.ValueType}.MaxValue, BaseUnit);
/// <summary>
/// Represents the smallest possible value of Duration
/// Represents the smallest possible value of {_quantity.Name}.
/// </summary>
public static {_quantity.Name} MinValue {{ get; }} = new {_quantity.Name}({_quantity.ValueType}.MinValue, BaseUnit);
");
Expand All @@ -96,7 +96,7 @@ public struct {_quantity.Name}
public static {_quantity.Name} MaxValue {{ get; }} = new {_quantity.Name}(79228162514264337593543950335M, BaseUnit);
/// <summary>
/// Represents the smallest possible value of Duration
/// Represents the smallest possible value of {_quantity.Name}.
/// </summary>
public static {_quantity.Name} MinValue {{ get; }} = new {_quantity.Name}(-79228162514264337593543950335M, BaseUnit);
");
Expand Down Expand Up @@ -193,9 +193,9 @@ private void GenerateConversionMethods()
public {_quantity.ValueType} As({_unitEnumName} unit) => GetValueAs(unit);
/// <summary>
/// Converts this Duration to another Duration with the unit representation <paramref name=""unit"" />.
/// Converts this {_quantity.Name} to another {_quantity.Name} with the unit representation <paramref name=""unit"" />.
/// </summary>
/// <returns>A Duration with the specified unit.</returns>
/// <returns>A {_quantity.Name} with the specified unit.</returns>
public {_quantity.Name} ToUnit({_unitEnumName} unit)
{{
var convertedValue = GetValueAs(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.

10 changes: 5 additions & 5 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.

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.

10 changes: 5 additions & 5 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.

10 changes: 5 additions & 5 deletions UnitsNet.NanoFramework/GeneratedCode/Quantities/AreaDensity.g.cs

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

0 comments on commit 1b3647f

Please sign in to comment.