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
Type | Name | Description |
---|---|---|
System.Int32 | v | The 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
Type | Name | Description |
---|---|---|
System.Double | v | The 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
Type | Name | Description |
---|---|---|
System.Single | v | The value of Current as a float. |