Skip to main content

Class CurrentExtensions

Provides extension methods for creating Meadow.Units.Current instances.

Assembly: Meadow.Units.dll
View Source
Declaration
public static class CurrentExtensions

Methods

Amps(int)

Creates a Current instance with the specified value in amps.

View Source
Declaration
public static Current Amps(this int v)
Returns

Meadow.Units.Current: A new Current instance with the specified value.

Parameters
TypeNameDescription
System.Int32vThe value of Current as an integer.

Amps(double)

Creates a Current instance with the specified value in amps.

View Source
Declaration
public static Current Amps(this double v)
Returns

Meadow.Units.Current: A new Current instance with the specified value.

Parameters
TypeNameDescription
System.DoublevThe value of Current as a double.

Amps(float)

Creates a Current instance with the specified value in amps.

View Source
Declaration
public static Current Amps(this float v)
Returns

Meadow.Units.Current: A new Current instance with the specified value.

Parameters
TypeNameDescription
System.SinglevThe value of Current as a float.