Skip to content

Commit 95f07e7

Browse files
committed
Fix build warns about xmldoc
1 parent faa1c70 commit 95f07e7

7 files changed

+15
-14
lines changed

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Information.WindowsRuntimeComponent.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ public static string GetAbbreviation(InformationUnit unit)
309309
/// Get unit abbreviation string.
310310
/// </summary>
311311
/// <param name="unit">Unit to get abbreviation for.</param>
312-
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
313312
/// <returns>Unit abbreviation string.</returns>
313+
/// <param name="cultureName">Name of culture (ex: "en-US") to use when parsing number and unit. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
314314
public static string GetAbbreviation(InformationUnit unit, [CanBeNull] string cultureName)
315315
{
316316
IFormatProvider provider = GetFormatProviderFromCultureName(cultureName);
@@ -780,7 +780,7 @@ private static Information ParseInternal(string str, [CanBeNull] IFormatProvider
780780
/// </example>
781781
private static bool TryParseInternal([CanBeNull] string str, [CanBeNull] IFormatProvider provider, out Information result)
782782
{
783-
result = default(Information);
783+
result = default;
784784

785785
if(string.IsNullOrWhiteSpace(str))
786786
return false;

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Length.WindowsRuntimeComponent.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ public static string GetAbbreviation(LengthUnit unit)
289289
/// Get unit abbreviation string.
290290
/// </summary>
291291
/// <param name="unit">Unit to get abbreviation for.</param>
292-
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
293292
/// <returns>Unit abbreviation string.</returns>
293+
/// <param name="cultureName">Name of culture (ex: "en-US") to use when parsing number and unit. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
294294
public static string GetAbbreviation(LengthUnit unit, [CanBeNull] string cultureName)
295295
{
296296
IFormatProvider provider = GetFormatProviderFromCultureName(cultureName);
@@ -720,7 +720,7 @@ private static Length ParseInternal(string str, [CanBeNull] IFormatProvider prov
720720
/// </example>
721721
private static bool TryParseInternal([CanBeNull] string str, [CanBeNull] IFormatProvider provider, out Length result)
722722
{
723-
result = default(Length);
723+
result = default;
724724

725725
if(string.IsNullOrWhiteSpace(str))
726726
return false;

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Level.WindowsRuntimeComponent.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ public static string GetAbbreviation(LevelUnit unit)
189189
/// Get unit abbreviation string.
190190
/// </summary>
191191
/// <param name="unit">Unit to get abbreviation for.</param>
192-
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
193192
/// <returns>Unit abbreviation string.</returns>
193+
/// <param name="cultureName">Name of culture (ex: "en-US") to use when parsing number and unit. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
194194
public static string GetAbbreviation(LevelUnit unit, [CanBeNull] string cultureName)
195195
{
196196
IFormatProvider provider = GetFormatProviderFromCultureName(cultureName);
@@ -420,7 +420,7 @@ private static Level ParseInternal(string str, [CanBeNull] IFormatProvider provi
420420
/// </example>
421421
private static bool TryParseInternal([CanBeNull] string str, [CanBeNull] IFormatProvider provider, out Level result)
422422
{
423-
result = default(Level);
423+
result = default;
424424

425425
if(string.IsNullOrWhiteSpace(str))
426426
return false;

UnitsNet/GeneratedCode/Quantities/Information.NetFramework.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ public static string GetAbbreviation(InformationUnit unit)
295295
/// Get unit abbreviation string.
296296
/// </summary>
297297
/// <param name="unit">Unit to get abbreviation for.</param>
298-
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
299298
/// <returns>Unit abbreviation string.</returns>
299+
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
300300
public static string GetAbbreviation(InformationUnit unit, [CanBeNull] IFormatProvider provider)
301301
{
302302
return UnitAbbreviationsCache.Default.GetDefaultAbbreviation(unit, provider);
@@ -733,7 +733,7 @@ private static Information ParseInternal(string str, [CanBeNull] IFormatProvider
733733
/// </example>
734734
private static bool TryParseInternal([CanBeNull] string str, [CanBeNull] IFormatProvider provider, out Information result)
735735
{
736-
result = default(Information);
736+
result = default;
737737

738738
if(string.IsNullOrWhiteSpace(str))
739739
return false;

UnitsNet/GeneratedCode/Quantities/Length.NetFramework.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ public static string GetAbbreviation(LengthUnit unit)
275275
/// Get unit abbreviation string.
276276
/// </summary>
277277
/// <param name="unit">Unit to get abbreviation for.</param>
278-
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
279278
/// <returns>Unit abbreviation string.</returns>
279+
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
280280
public static string GetAbbreviation(LengthUnit unit, [CanBeNull] IFormatProvider provider)
281281
{
282282
return UnitAbbreviationsCache.Default.GetDefaultAbbreviation(unit, provider);
@@ -677,7 +677,7 @@ private static Length ParseInternal(string str, [CanBeNull] IFormatProvider prov
677677
/// </example>
678678
private static bool TryParseInternal([CanBeNull] string str, [CanBeNull] IFormatProvider provider, out Length result)
679679
{
680-
result = default(Length);
680+
result = default;
681681

682682
if(string.IsNullOrWhiteSpace(str))
683683
return false;

UnitsNet/GeneratedCode/Quantities/Level.NetFramework.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ public static string GetAbbreviation(LevelUnit unit)
175175
/// Get unit abbreviation string.
176176
/// </summary>
177177
/// <param name="unit">Unit to get abbreviation for.</param>
178-
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
179178
/// <returns>Unit abbreviation string.</returns>
179+
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
180180
public static string GetAbbreviation(LevelUnit unit, [CanBeNull] IFormatProvider provider)
181181
{
182182
return UnitAbbreviationsCache.Default.GetDefaultAbbreviation(unit, provider);
@@ -397,7 +397,7 @@ private static Level ParseInternal(string str, [CanBeNull] IFormatProvider provi
397397
/// </example>
398398
private static bool TryParseInternal([CanBeNull] string str, [CanBeNull] IFormatProvider provider, out Level result)
399399
{
400-
result = default(Level);
400+
result = default;
401401

402402
if(string.IsNullOrWhiteSpace(str))
403403
return false;

UnitsNet/Scripts/Include-GenerateQuantitySourceCodeNetFramework.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,14 +407,15 @@ function GenerateStaticMethods([GeneratorArgs]$genArgs)
407407
/// Get unit abbreviation string.
408408
/// </summary>
409409
/// <param name="unit">Unit to get abbreviation for.</param>
410-
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
411410
/// <returns>Unit abbreviation string.</returns>
412411
"@; # Windows Runtime Component does not support IFormatProvider type
413412
if ($wrc) {@"
413+
/// <param name="cultureName">Name of culture (ex: "en-US") to use when parsing number and unit. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
414414
public static string GetAbbreviation($unitEnumName unit, [CanBeNull] string cultureName)
415415
{
416416
IFormatProvider provider = GetFormatProviderFromCultureName(cultureName);
417417
"@; } else {@"
418+
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
418419
public static string GetAbbreviation($unitEnumName unit, [CanBeNull] IFormatProvider provider)
419420
{
420421
"@; }@"
@@ -705,7 +706,7 @@ if ($wrc) {@"
705706
/// </example>
706707
private static bool TryParseInternal([CanBeNull] string str, [CanBeNull] IFormatProvider provider, out $quantityName result)
707708
{
708-
result = default($quantityName);
709+
result = default;
709710
710711
if(string.IsNullOrWhiteSpace(str))
711712
return false;

0 commit comments

Comments
 (0)