Skip to main content

Class VoltageExtensions

Provides extension methods for creating Resistance 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
TypeNameDescription
System.Int32vThe 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
TypeNameDescription
System.DoublevThe 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
TypeNameDescription
System.SinglevThe value of voltage as a float.