forked from angularsen/UnitsNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNumberToSpecificFuelConsumptionExtensions.g.cs
More file actions
68 lines (59 loc) · 2.72 KB
/
NumberToSpecificFuelConsumptionExtensions.g.cs
File metadata and controls
68 lines (59 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by \generate-code.bat.
//
// Changes to this file will be lost when the code is regenerated.
// The build server regenerates the code before each build and a pre-build
// step will regenerate the code on each local build.
//
// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
//
// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
//
// </auto-generated>
//------------------------------------------------------------------------------
// Licensed under MIT No Attribution, see LICENSE file at the root.
// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
using System;
#if NET7_0_OR_GREATER
using System.Numerics;
#endif
#nullable enable
namespace UnitsNet.NumberExtensions.NumberToSpecificFuelConsumption
{
/// <summary>
/// A number to SpecificFuelConsumption Extensions
/// </summary>
public static class NumberToSpecificFuelConsumptionExtensions
{
/// <inheritdoc cref="SpecificFuelConsumption.FromGramsPerKilonewtonSecond(double)" />
public static SpecificFuelConsumption GramsPerKilonewtonSecond<T>(this T value)
where T : notnull
#if NET7_0_OR_GREATER
, INumber<T>
#endif
=> SpecificFuelConsumption.FromGramsPerKilonewtonSecond(Convert.ToDouble(value));
/// <inheritdoc cref="SpecificFuelConsumption.FromKilogramsPerKilogramForceHour(double)" />
public static SpecificFuelConsumption KilogramsPerKilogramForceHour<T>(this T value)
where T : notnull
#if NET7_0_OR_GREATER
, INumber<T>
#endif
=> SpecificFuelConsumption.FromKilogramsPerKilogramForceHour(Convert.ToDouble(value));
/// <inheritdoc cref="SpecificFuelConsumption.FromKilogramsPerKilonewtonSecond(double)" />
public static SpecificFuelConsumption KilogramsPerKilonewtonSecond<T>(this T value)
where T : notnull
#if NET7_0_OR_GREATER
, INumber<T>
#endif
=> SpecificFuelConsumption.FromKilogramsPerKilonewtonSecond(Convert.ToDouble(value));
/// <inheritdoc cref="SpecificFuelConsumption.FromPoundsMassPerPoundForceHour(double)" />
public static SpecificFuelConsumption PoundsMassPerPoundForceHour<T>(this T value)
where T : notnull
#if NET7_0_OR_GREATER
, INumber<T>
#endif
=> SpecificFuelConsumption.FromPoundsMassPerPoundForceHour(Convert.ToDouble(value));
}
}