Class VoltageExtensions
Provides extension methods for creating Meadow.Units.Voltage instances.
Assembly: Meadow.Units.dll
View Source
Declaration
public static class VoltageExtensions
Methods
Volts(int)
Creates a Voltage instance with the specified value in volts.
View Source
Declaration
public static Voltage Volts(this int v)
Returns
Meadow.Units.Voltage: A new Voltage instance with the specified value.
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | v | The value of voltage as an integer. |
Volts(double)
Creates a Voltage instance with the specified value in volts.
View Source
Declaration
public static Voltage Volts(this double v)
Returns
Meadow.Units.Voltage: A new Voltage instance with the specified value.
Parameters
Type | Name | Description |
---|---|---|
System.Double | v | The value of voltage as a double. |
Volts(float)
Creates a Voltage instance with the specified value in volts.
View Source
Declaration
public static Voltage Volts(this float v)
Returns
Meadow.Units.Voltage: A new Voltage instance with the specified value.
Parameters
Type | Name | Description |
---|---|---|
System.Single | v | The value of voltage as a float. |