Skip to content

Commit

Permalink
Create better doc with crefs (#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilnthorp authored Feb 10, 2022
1 parent a83c44d commit 72e53ef
Show file tree
Hide file tree
Showing 339 changed files with 8,154 additions and 8,154 deletions.
4 changes: 2 additions & 2 deletions CodeGen/Generators/NanoFrameworkGen/QuantityGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private void GenerateConversionProperties()

Writer.WL($@"
/// <summary>
/// Get {_quantity.Name} in {unit.PluralName}.
/// Gets a <see cref=""double""/> value of this quantity converted into <see cref=""{_unitEnumName}.{unit.SingularName}""/>
/// </summary>");
Writer.WL($@"
public {_quantity.BaseType} {unit.PluralName} => As({_unitEnumName}.{unit.SingularName});
Expand All @@ -155,7 +155,7 @@ private void GenerateStaticFactoryMethods()
var valueParamName = unit.PluralName.ToLowerInvariant();
Writer.WL($@"
/// <summary>
/// Get {_quantity.Name} from {unit.PluralName}.
/// Creates a <see cref=""{_quantity.Name}""/> from <see cref=""{_unitEnumName}.{unit.SingularName}""/>.
/// </summary>
/// <exception cref=""ArgumentException"">If value is NaN or Infinity.</exception>");
Writer.WL($@"
Expand Down
4 changes: 2 additions & 2 deletions CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ private void GenerateConversionProperties()

Writer.WL($@"
/// <summary>
/// Get {_quantity.Name} in {unit.PluralName}.
/// Gets a <see cref=""double""/> value of this quantity converted into <see cref=""{_unitEnumName}.{unit.SingularName}""/>
/// </summary>");
Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit));
Writer.WL($@"
Expand Down Expand Up @@ -454,7 +454,7 @@ private void GenerateStaticFactoryMethods()
var valueParamName = unit.PluralName.ToLowerInvariant();
Writer.WL($@"
/// <summary>
/// Get {_quantity.Name} from {unit.PluralName}.
/// Creates a <see cref=""{_quantity.Name}""/> from <see cref=""{_unitEnumName}.{unit.SingularName}""/>.
/// </summary>
/// <exception cref=""ArgumentException"">If value is NaN or Infinity.</exception>");
Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit));
Expand Down
4 changes: 2 additions & 2 deletions CodeGen/Generators/UnitsNetWrcGen/QuantityGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ private void GenerateConversionProperties()

Writer.WL($@"
/// <summary>
/// Get {_quantity.Name} in {unit.PluralName}.
/// Gets a <see cref=""double""/> value of this quantity converted into <see cref=""{_unitEnumName}.{unit.SingularName}""/>
/// </summary>");
Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit));
Writer.WL($@"
Expand Down Expand Up @@ -342,7 +342,7 @@ private void GenerateStaticFactoryMethods()
var valueParamName = unit.PluralName.ToLowerInvariant();
Writer.WL($@"
/// <summary>
/// Get {_quantity.Name} from {unit.PluralName}.
/// Creates a <see cref=""{_quantity.Name}""/> from <see cref=""{_unitEnumName}.{unit.SingularName}""/>.
/// </summary>
/// <exception cref=""ArgumentException"">If value is NaN or Infinity.</exception>");
Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit));
Expand Down
56 changes: 28 additions & 28 deletions UnitsNet.NanoFramework/GeneratedCode/Quantities/Acceleration.g.cs

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

Loading

0 comments on commit 72e53ef

Please sign in to comment.