Skip to content

Commit 06ff789

Browse files
committed
Regenerate code
1 parent ba49e26 commit 06ff789

34 files changed

+408
-0
lines changed

UnitsNet/GeneratedCode/UnitClasses/Acceleration.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ public double As(AccelerationUnit unit)
360360
/// <summary>
361361
/// Parse a string with one or two quantities of the format "&lt;quantity&gt; &lt;unit&gt;".
362362
/// </summary>
363+
/// <param name="str">String to parse. Typically in the form: {number} {unit}</param>
364+
/// <param name="formatProvider">Format to use when parsing number and unit. If it is null, it defaults to <see cref="NumberFormatInfo.CurrentInfo"/> for parsing the number and <see cref="CultureInfo.CurrentUICulture"/> for parsing the unit abbreviation by culture/language.</param>
363365
/// <example>
364366
/// Length.Parse("5.5 m", new CultureInfo("en-US"));
365367
/// </example>
@@ -368,6 +370,16 @@ public double As(AccelerationUnit unit)
368370
/// Expected string to have one or two pairs of quantity and unit in the format
369371
/// "&lt;quantity&gt; &lt;unit&gt;". Eg. "5.5 m" or "1ft 2in"
370372
/// </exception>
373+
/// <exception cref="AmbiguousUnitParseException">
374+
/// More than one unit is represented by the specified unit abbreviation.
375+
/// Example: Volume.Parse("1 cup") will throw, because it can refer to any of
376+
/// <see cref="VolumeUnit.MetricCup" />, <see cref="VolumeUnit.UsLegalCup" /> and <see cref="VolumeUnit.UsCustomaryCup" />.
377+
/// </exception>
378+
/// <exception cref="UnitsNetException">
379+
/// If anything else goes wrong, typically due to a bug or unhandled case.
380+
/// We wrap exceptions in <see cref="UnitsNetException" /> to allow you to distinguish
381+
/// Units.NET exceptions from other exceptions.
382+
/// </exception>
371383
public static Acceleration Parse(string str, IFormatProvider formatProvider = null)
372384
{
373385
if (str == null) throw new ArgumentNullException("str");

UnitsNet/GeneratedCode/UnitClasses/AmplitudeRatio.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ public double As(AmplitudeRatioUnit unit)
288288
/// <summary>
289289
/// Parse a string with one or two quantities of the format "&lt;quantity&gt; &lt;unit&gt;".
290290
/// </summary>
291+
/// <param name="str">String to parse. Typically in the form: {number} {unit}</param>
292+
/// <param name="formatProvider">Format to use when parsing number and unit. If it is null, it defaults to <see cref="NumberFormatInfo.CurrentInfo"/> for parsing the number and <see cref="CultureInfo.CurrentUICulture"/> for parsing the unit abbreviation by culture/language.</param>
291293
/// <example>
292294
/// Length.Parse("5.5 m", new CultureInfo("en-US"));
293295
/// </example>
@@ -296,6 +298,16 @@ public double As(AmplitudeRatioUnit unit)
296298
/// Expected string to have one or two pairs of quantity and unit in the format
297299
/// "&lt;quantity&gt; &lt;unit&gt;". Eg. "5.5 m" or "1ft 2in"
298300
/// </exception>
301+
/// <exception cref="AmbiguousUnitParseException">
302+
/// More than one unit is represented by the specified unit abbreviation.
303+
/// Example: Volume.Parse("1 cup") will throw, because it can refer to any of
304+
/// <see cref="VolumeUnit.MetricCup" />, <see cref="VolumeUnit.UsLegalCup" /> and <see cref="VolumeUnit.UsCustomaryCup" />.
305+
/// </exception>
306+
/// <exception cref="UnitsNetException">
307+
/// If anything else goes wrong, typically due to a bug or unhandled case.
308+
/// We wrap exceptions in <see cref="UnitsNetException" /> to allow you to distinguish
309+
/// Units.NET exceptions from other exceptions.
310+
/// </exception>
299311
public static AmplitudeRatio Parse(string str, IFormatProvider formatProvider = null)
300312
{
301313
if (str == null) throw new ArgumentNullException("str");

UnitsNet/GeneratedCode/UnitClasses/Angle.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ public double As(AngleUnit unit)
420420
/// <summary>
421421
/// Parse a string with one or two quantities of the format "&lt;quantity&gt; &lt;unit&gt;".
422422
/// </summary>
423+
/// <param name="str">String to parse. Typically in the form: {number} {unit}</param>
424+
/// <param name="formatProvider">Format to use when parsing number and unit. If it is null, it defaults to <see cref="NumberFormatInfo.CurrentInfo"/> for parsing the number and <see cref="CultureInfo.CurrentUICulture"/> for parsing the unit abbreviation by culture/language.</param>
423425
/// <example>
424426
/// Length.Parse("5.5 m", new CultureInfo("en-US"));
425427
/// </example>
@@ -428,6 +430,16 @@ public double As(AngleUnit unit)
428430
/// Expected string to have one or two pairs of quantity and unit in the format
429431
/// "&lt;quantity&gt; &lt;unit&gt;". Eg. "5.5 m" or "1ft 2in"
430432
/// </exception>
433+
/// <exception cref="AmbiguousUnitParseException">
434+
/// More than one unit is represented by the specified unit abbreviation.
435+
/// Example: Volume.Parse("1 cup") will throw, because it can refer to any of
436+
/// <see cref="VolumeUnit.MetricCup" />, <see cref="VolumeUnit.UsLegalCup" /> and <see cref="VolumeUnit.UsCustomaryCup" />.
437+
/// </exception>
438+
/// <exception cref="UnitsNetException">
439+
/// If anything else goes wrong, typically due to a bug or unhandled case.
440+
/// We wrap exceptions in <see cref="UnitsNetException" /> to allow you to distinguish
441+
/// Units.NET exceptions from other exceptions.
442+
/// </exception>
431443
public static Angle Parse(string str, IFormatProvider formatProvider = null)
432444
{
433445
if (str == null) throw new ArgumentNullException("str");

UnitsNet/GeneratedCode/UnitClasses/Area.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ public double As(AreaUnit unit)
420420
/// <summary>
421421
/// Parse a string with one or two quantities of the format "&lt;quantity&gt; &lt;unit&gt;".
422422
/// </summary>
423+
/// <param name="str">String to parse. Typically in the form: {number} {unit}</param>
424+
/// <param name="formatProvider">Format to use when parsing number and unit. If it is null, it defaults to <see cref="NumberFormatInfo.CurrentInfo"/> for parsing the number and <see cref="CultureInfo.CurrentUICulture"/> for parsing the unit abbreviation by culture/language.</param>
423425
/// <example>
424426
/// Length.Parse("5.5 m", new CultureInfo("en-US"));
425427
/// </example>
@@ -428,6 +430,16 @@ public double As(AreaUnit unit)
428430
/// Expected string to have one or two pairs of quantity and unit in the format
429431
/// "&lt;quantity&gt; &lt;unit&gt;". Eg. "5.5 m" or "1ft 2in"
430432
/// </exception>
433+
/// <exception cref="AmbiguousUnitParseException">
434+
/// More than one unit is represented by the specified unit abbreviation.
435+
/// Example: Volume.Parse("1 cup") will throw, because it can refer to any of
436+
/// <see cref="VolumeUnit.MetricCup" />, <see cref="VolumeUnit.UsLegalCup" /> and <see cref="VolumeUnit.UsCustomaryCup" />.
437+
/// </exception>
438+
/// <exception cref="UnitsNetException">
439+
/// If anything else goes wrong, typically due to a bug or unhandled case.
440+
/// We wrap exceptions in <see cref="UnitsNetException" /> to allow you to distinguish
441+
/// Units.NET exceptions from other exceptions.
442+
/// </exception>
431443
public static Area Parse(string str, IFormatProvider formatProvider = null)
432444
{
433445
if (str == null) throw new ArgumentNullException("str");

UnitsNet/GeneratedCode/UnitClasses/Density.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ public double As(DensityUnit unit)
420420
/// <summary>
421421
/// Parse a string with one or two quantities of the format "&lt;quantity&gt; &lt;unit&gt;".
422422
/// </summary>
423+
/// <param name="str">String to parse. Typically in the form: {number} {unit}</param>
424+
/// <param name="formatProvider">Format to use when parsing number and unit. If it is null, it defaults to <see cref="NumberFormatInfo.CurrentInfo"/> for parsing the number and <see cref="CultureInfo.CurrentUICulture"/> for parsing the unit abbreviation by culture/language.</param>
423425
/// <example>
424426
/// Length.Parse("5.5 m", new CultureInfo("en-US"));
425427
/// </example>
@@ -428,6 +430,16 @@ public double As(DensityUnit unit)
428430
/// Expected string to have one or two pairs of quantity and unit in the format
429431
/// "&lt;quantity&gt; &lt;unit&gt;". Eg. "5.5 m" or "1ft 2in"
430432
/// </exception>
433+
/// <exception cref="AmbiguousUnitParseException">
434+
/// More than one unit is represented by the specified unit abbreviation.
435+
/// Example: Volume.Parse("1 cup") will throw, because it can refer to any of
436+
/// <see cref="VolumeUnit.MetricCup" />, <see cref="VolumeUnit.UsLegalCup" /> and <see cref="VolumeUnit.UsCustomaryCup" />.
437+
/// </exception>
438+
/// <exception cref="UnitsNetException">
439+
/// If anything else goes wrong, typically due to a bug or unhandled case.
440+
/// We wrap exceptions in <see cref="UnitsNetException" /> to allow you to distinguish
441+
/// Units.NET exceptions from other exceptions.
442+
/// </exception>
431443
public static Density Parse(string str, IFormatProvider formatProvider = null)
432444
{
433445
if (str == null) throw new ArgumentNullException("str");

UnitsNet/GeneratedCode/UnitClasses/Duration.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ public double As(DurationUnit unit)
420420
/// <summary>
421421
/// Parse a string with one or two quantities of the format "&lt;quantity&gt; &lt;unit&gt;".
422422
/// </summary>
423+
/// <param name="str">String to parse. Typically in the form: {number} {unit}</param>
424+
/// <param name="formatProvider">Format to use when parsing number and unit. If it is null, it defaults to <see cref="NumberFormatInfo.CurrentInfo"/> for parsing the number and <see cref="CultureInfo.CurrentUICulture"/> for parsing the unit abbreviation by culture/language.</param>
423425
/// <example>
424426
/// Length.Parse("5.5 m", new CultureInfo("en-US"));
425427
/// </example>
@@ -428,6 +430,16 @@ public double As(DurationUnit unit)
428430
/// Expected string to have one or two pairs of quantity and unit in the format
429431
/// "&lt;quantity&gt; &lt;unit&gt;". Eg. "5.5 m" or "1ft 2in"
430432
/// </exception>
433+
/// <exception cref="AmbiguousUnitParseException">
434+
/// More than one unit is represented by the specified unit abbreviation.
435+
/// Example: Volume.Parse("1 cup") will throw, because it can refer to any of
436+
/// <see cref="VolumeUnit.MetricCup" />, <see cref="VolumeUnit.UsLegalCup" /> and <see cref="VolumeUnit.UsCustomaryCup" />.
437+
/// </exception>
438+
/// <exception cref="UnitsNetException">
439+
/// If anything else goes wrong, typically due to a bug or unhandled case.
440+
/// We wrap exceptions in <see cref="UnitsNetException" /> to allow you to distinguish
441+
/// Units.NET exceptions from other exceptions.
442+
/// </exception>
431443
public static Duration Parse(string str, IFormatProvider formatProvider = null)
432444
{
433445
if (str == null) throw new ArgumentNullException("str");

UnitsNet/GeneratedCode/UnitClasses/ElectricCurrent.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ public double As(ElectricCurrentUnit unit)
340340
/// <summary>
341341
/// Parse a string with one or two quantities of the format "&lt;quantity&gt; &lt;unit&gt;".
342342
/// </summary>
343+
/// <param name="str">String to parse. Typically in the form: {number} {unit}</param>
344+
/// <param name="formatProvider">Format to use when parsing number and unit. If it is null, it defaults to <see cref="NumberFormatInfo.CurrentInfo"/> for parsing the number and <see cref="CultureInfo.CurrentUICulture"/> for parsing the unit abbreviation by culture/language.</param>
343345
/// <example>
344346
/// Length.Parse("5.5 m", new CultureInfo("en-US"));
345347
/// </example>
@@ -348,6 +350,16 @@ public double As(ElectricCurrentUnit unit)
348350
/// Expected string to have one or two pairs of quantity and unit in the format
349351
/// "&lt;quantity&gt; &lt;unit&gt;". Eg. "5.5 m" or "1ft 2in"
350352
/// </exception>
353+
/// <exception cref="AmbiguousUnitParseException">
354+
/// More than one unit is represented by the specified unit abbreviation.
355+
/// Example: Volume.Parse("1 cup") will throw, because it can refer to any of
356+
/// <see cref="VolumeUnit.MetricCup" />, <see cref="VolumeUnit.UsLegalCup" /> and <see cref="VolumeUnit.UsCustomaryCup" />.
357+
/// </exception>
358+
/// <exception cref="UnitsNetException">
359+
/// If anything else goes wrong, typically due to a bug or unhandled case.
360+
/// We wrap exceptions in <see cref="UnitsNetException" /> to allow you to distinguish
361+
/// Units.NET exceptions from other exceptions.
362+
/// </exception>
351363
public static ElectricCurrent Parse(string str, IFormatProvider formatProvider = null)
352364
{
353365
if (str == null) throw new ArgumentNullException("str");

UnitsNet/GeneratedCode/UnitClasses/ElectricPotential.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ public double As(ElectricPotentialUnit unit)
320320
/// <summary>
321321
/// Parse a string with one or two quantities of the format "&lt;quantity&gt; &lt;unit&gt;".
322322
/// </summary>
323+
/// <param name="str">String to parse. Typically in the form: {number} {unit}</param>
324+
/// <param name="formatProvider">Format to use when parsing number and unit. If it is null, it defaults to <see cref="NumberFormatInfo.CurrentInfo"/> for parsing the number and <see cref="CultureInfo.CurrentUICulture"/> for parsing the unit abbreviation by culture/language.</param>
323325
/// <example>
324326
/// Length.Parse("5.5 m", new CultureInfo("en-US"));
325327
/// </example>
@@ -328,6 +330,16 @@ public double As(ElectricPotentialUnit unit)
328330
/// Expected string to have one or two pairs of quantity and unit in the format
329331
/// "&lt;quantity&gt; &lt;unit&gt;". Eg. "5.5 m" or "1ft 2in"
330332
/// </exception>
333+
/// <exception cref="AmbiguousUnitParseException">
334+
/// More than one unit is represented by the specified unit abbreviation.
335+
/// Example: Volume.Parse("1 cup") will throw, because it can refer to any of
336+
/// <see cref="VolumeUnit.MetricCup" />, <see cref="VolumeUnit.UsLegalCup" /> and <see cref="VolumeUnit.UsCustomaryCup" />.
337+
/// </exception>
338+
/// <exception cref="UnitsNetException">
339+
/// If anything else goes wrong, typically due to a bug or unhandled case.
340+
/// We wrap exceptions in <see cref="UnitsNetException" /> to allow you to distinguish
341+
/// Units.NET exceptions from other exceptions.
342+
/// </exception>
331343
public static ElectricPotential Parse(string str, IFormatProvider formatProvider = null)
332344
{
333345
if (str == null) throw new ArgumentNullException("str");

UnitsNet/GeneratedCode/UnitClasses/ElectricResistance.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ public double As(ElectricResistanceUnit unit)
280280
/// <summary>
281281
/// Parse a string with one or two quantities of the format "&lt;quantity&gt; &lt;unit&gt;".
282282
/// </summary>
283+
/// <param name="str">String to parse. Typically in the form: {number} {unit}</param>
284+
/// <param name="formatProvider">Format to use when parsing number and unit. If it is null, it defaults to <see cref="NumberFormatInfo.CurrentInfo"/> for parsing the number and <see cref="CultureInfo.CurrentUICulture"/> for parsing the unit abbreviation by culture/language.</param>
283285
/// <example>
284286
/// Length.Parse("5.5 m", new CultureInfo("en-US"));
285287
/// </example>
@@ -288,6 +290,16 @@ public double As(ElectricResistanceUnit unit)
288290
/// Expected string to have one or two pairs of quantity and unit in the format
289291
/// "&lt;quantity&gt; &lt;unit&gt;". Eg. "5.5 m" or "1ft 2in"
290292
/// </exception>
293+
/// <exception cref="AmbiguousUnitParseException">
294+
/// More than one unit is represented by the specified unit abbreviation.
295+
/// Example: Volume.Parse("1 cup") will throw, because it can refer to any of
296+
/// <see cref="VolumeUnit.MetricCup" />, <see cref="VolumeUnit.UsLegalCup" /> and <see cref="VolumeUnit.UsCustomaryCup" />.
297+
/// </exception>
298+
/// <exception cref="UnitsNetException">
299+
/// If anything else goes wrong, typically due to a bug or unhandled case.
300+
/// We wrap exceptions in <see cref="UnitsNetException" /> to allow you to distinguish
301+
/// Units.NET exceptions from other exceptions.
302+
/// </exception>
291303
public static ElectricResistance Parse(string str, IFormatProvider formatProvider = null)
292304
{
293305
if (str == null) throw new ArgumentNullException("str");

UnitsNet/GeneratedCode/UnitClasses/Energy.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,8 @@ public double As(EnergyUnit unit)
480480
/// <summary>
481481
/// Parse a string with one or two quantities of the format "&lt;quantity&gt; &lt;unit&gt;".
482482
/// </summary>
483+
/// <param name="str">String to parse. Typically in the form: {number} {unit}</param>
484+
/// <param name="formatProvider">Format to use when parsing number and unit. If it is null, it defaults to <see cref="NumberFormatInfo.CurrentInfo"/> for parsing the number and <see cref="CultureInfo.CurrentUICulture"/> for parsing the unit abbreviation by culture/language.</param>
483485
/// <example>
484486
/// Length.Parse("5.5 m", new CultureInfo("en-US"));
485487
/// </example>
@@ -488,6 +490,16 @@ public double As(EnergyUnit unit)
488490
/// Expected string to have one or two pairs of quantity and unit in the format
489491
/// "&lt;quantity&gt; &lt;unit&gt;". Eg. "5.5 m" or "1ft 2in"
490492
/// </exception>
493+
/// <exception cref="AmbiguousUnitParseException">
494+
/// More than one unit is represented by the specified unit abbreviation.
495+
/// Example: Volume.Parse("1 cup") will throw, because it can refer to any of
496+
/// <see cref="VolumeUnit.MetricCup" />, <see cref="VolumeUnit.UsLegalCup" /> and <see cref="VolumeUnit.UsCustomaryCup" />.
497+
/// </exception>
498+
/// <exception cref="UnitsNetException">
499+
/// If anything else goes wrong, typically due to a bug or unhandled case.
500+
/// We wrap exceptions in <see cref="UnitsNetException" /> to allow you to distinguish
501+
/// Units.NET exceptions from other exceptions.
502+
/// </exception>
491503
public static Energy Parse(string str, IFormatProvider formatProvider = null)
492504
{
493505
if (str == null) throw new ArgumentNullException("str");

0 commit comments

Comments
 (0)