Skip to content

Commit 72e53ef

Browse files
authored
Create better doc with crefs (#1040)
1 parent a83c44d commit 72e53ef

File tree

339 files changed

+8154
-8154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

339 files changed

+8154
-8154
lines changed

CodeGen/Generators/NanoFrameworkGen/QuantityGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private void GenerateConversionProperties()
129129

130130
Writer.WL($@"
131131
/// <summary>
132-
/// Get {_quantity.Name} in {unit.PluralName}.
132+
/// Gets a <see cref=""double""/> value of this quantity converted into <see cref=""{_unitEnumName}.{unit.SingularName}""/>
133133
/// </summary>");
134134
Writer.WL($@"
135135
public {_quantity.BaseType} {unit.PluralName} => As({_unitEnumName}.{unit.SingularName});
@@ -155,7 +155,7 @@ private void GenerateStaticFactoryMethods()
155155
var valueParamName = unit.PluralName.ToLowerInvariant();
156156
Writer.WL($@"
157157
/// <summary>
158-
/// Get {_quantity.Name} from {unit.PluralName}.
158+
/// Creates a <see cref=""{_quantity.Name}""/> from <see cref=""{_unitEnumName}.{unit.SingularName}""/>.
159159
/// </summary>
160160
/// <exception cref=""ArgumentException"">If value is NaN or Infinity.</exception>");
161161
Writer.WL($@"

CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ private void GenerateConversionProperties()
339339

340340
Writer.WL($@"
341341
/// <summary>
342-
/// Get {_quantity.Name} in {unit.PluralName}.
342+
/// Gets a <see cref=""double""/> value of this quantity converted into <see cref=""{_unitEnumName}.{unit.SingularName}""/>
343343
/// </summary>");
344344
Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit));
345345
Writer.WL($@"
@@ -454,7 +454,7 @@ private void GenerateStaticFactoryMethods()
454454
var valueParamName = unit.PluralName.ToLowerInvariant();
455455
Writer.WL($@"
456456
/// <summary>
457-
/// Get {_quantity.Name} from {unit.PluralName}.
457+
/// Creates a <see cref=""{_quantity.Name}""/> from <see cref=""{_unitEnumName}.{unit.SingularName}""/>.
458458
/// </summary>
459459
/// <exception cref=""ArgumentException"">If value is NaN or Infinity.</exception>");
460460
Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit));

CodeGen/Generators/UnitsNetWrcGen/QuantityGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private void GenerateConversionProperties()
264264

265265
Writer.WL($@"
266266
/// <summary>
267-
/// Get {_quantity.Name} in {unit.PluralName}.
267+
/// Gets a <see cref=""double""/> value of this quantity converted into <see cref=""{_unitEnumName}.{unit.SingularName}""/>
268268
/// </summary>");
269269
Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit));
270270
Writer.WL($@"
@@ -342,7 +342,7 @@ private void GenerateStaticFactoryMethods()
342342
var valueParamName = unit.PluralName.ToLowerInvariant();
343343
Writer.WL($@"
344344
/// <summary>
345-
/// Get {_quantity.Name} from {unit.PluralName}.
345+
/// Creates a <see cref=""{_quantity.Name}""/> from <see cref=""{_unitEnumName}.{unit.SingularName}""/>.
346346
/// </summary>
347347
/// <exception cref=""ArgumentException"">If value is NaN or Infinity.</exception>");
348348
Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit));

UnitsNet.NanoFramework/GeneratedCode/Quantities/Acceleration.g.cs

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)