Skip to main content

Class ResistanceExtensions

Provides extension methods for creating Resistance instances.

Assembly: Meadow.Units.dll
View Source
public static class ResistanceExtensions

Methods

Ohms(int)

Creates a Resistance instance with the specified value in ohms.

View Source
public static Resistance Ohms(this int v)
Returns

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

Parameters
TypeNameDescription
System.Int32vThe value of resistance in ohms as an integer.

Ohms(double)

Creates a Resistance instance with the specified value in ohms.

View Source
public static Resistance Ohms(this double v)
Returns

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

Parameters
TypeNameDescription
System.DoublevThe value of resistance in ohms as a double.

Ohms(float)

Creates a Resistance instance with the specified value in ohms.

View Source
public static Resistance Ohms(this float v)
Returns

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

Parameters
TypeNameDescription
System.SinglevThe value of resistance in ohms as a float.