Table of Contents

Struct ElectricResistance

Namespace
UnitsNet
Assembly
UnitsNet.ElectricResistance.dll

The electrical resistance of an electrical conductor is the opposition to the passage of an electric current through that conductor.

public struct ElectricResistance

Constructors

ElectricResistance(double, ElectricResistanceUnit)

Creates the quantity with the given numeric value and unit.

public ElectricResistance(double value, ElectricResistanceUnit unit)

Parameters

value double

The numeric value to construct this quantity with.

unit ElectricResistanceUnit

The unit representation to construct this quantity with.

Exceptions

ArgumentException

If value is NaN or Infinity.

Properties

BaseUnit

The base unit of ElectricResistance, which is Second. All conversions go via this value.

public static ElectricResistanceUnit BaseUnit { get; }

Property Value

ElectricResistanceUnit

Gigaohms

Gets a double value of this quantity converted into Gigaohm

public double Gigaohms { get; }

Property Value

double

Kiloohms

Gets a double value of this quantity converted into Kiloohm

public double Kiloohms { get; }

Property Value

double

MaxValue

Represents the largest possible value of ElectricResistance.

public static ElectricResistance MaxValue { get; }

Property Value

ElectricResistance

Megaohms

Gets a double value of this quantity converted into Megaohm

public double Megaohms { get; }

Property Value

double

Microohms

Gets a double value of this quantity converted into Microohm

public double Microohms { get; }

Property Value

double

Milliohms

Gets a double value of this quantity converted into Milliohm

public double Milliohms { get; }

Property Value

double

MinValue

Represents the smallest possible value of ElectricResistance.

public static ElectricResistance MinValue { get; }

Property Value

ElectricResistance

Ohms

Gets a double value of this quantity converted into Ohm

public double Ohms { get; }

Property Value

double

Teraohms

Gets a double value of this quantity converted into Teraohm

public double Teraohms { get; }

Property Value

double

Unit

public ElectricResistanceUnit Unit { get; }

Property Value

ElectricResistanceUnit

Value

The numeric value this quantity was constructed with.

public double Value { get; }

Property Value

double

Zero

Gets an instance of this quantity with a value of 0 in the base unit Second.

public static ElectricResistance Zero { get; }

Property Value

ElectricResistance

Methods

As(ElectricResistanceUnit)

Convert to the unit representation unit.

public double As(ElectricResistanceUnit unit)

Parameters

unit ElectricResistanceUnit

Returns

double

Value converted to the specified unit.

From(double, ElectricResistanceUnit)

Dynamically convert from value and unit enum ElectricResistanceUnit to ElectricResistance.

public static ElectricResistance From(double value, ElectricResistanceUnit fromUnit)

Parameters

value double

Value to convert from.

fromUnit ElectricResistanceUnit

Unit to convert from.

Returns

ElectricResistance

ElectricResistance unit value.

FromGigaohms(double)

Creates a ElectricResistance from Gigaohm.

public static ElectricResistance FromGigaohms(double gigaohms)

Parameters

gigaohms double

Returns

ElectricResistance

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKiloohms(double)

Creates a ElectricResistance from Kiloohm.

public static ElectricResistance FromKiloohms(double kiloohms)

Parameters

kiloohms double

Returns

ElectricResistance

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMegaohms(double)

Creates a ElectricResistance from Megaohm.

public static ElectricResistance FromMegaohms(double megaohms)

Parameters

megaohms double

Returns

ElectricResistance

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMicroohms(double)

Creates a ElectricResistance from Microohm.

public static ElectricResistance FromMicroohms(double microohms)

Parameters

microohms double

Returns

ElectricResistance

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMilliohms(double)

Creates a ElectricResistance from Milliohm.

public static ElectricResistance FromMilliohms(double milliohms)

Parameters

milliohms double

Returns

ElectricResistance

Exceptions

ArgumentException

If value is NaN or Infinity.

FromOhms(double)

Creates a ElectricResistance from Ohm.

public static ElectricResistance FromOhms(double ohms)

Parameters

ohms double

Returns

ElectricResistance

Exceptions

ArgumentException

If value is NaN or Infinity.

FromTeraohms(double)

Creates a ElectricResistance from Teraohm.

public static ElectricResistance FromTeraohms(double teraohms)

Parameters

teraohms double

Returns

ElectricResistance

Exceptions

ArgumentException

If value is NaN or Infinity.

ToUnit(ElectricResistanceUnit)

Converts this ElectricResistance to another ElectricResistance with the unit representation unit.

public ElectricResistance ToUnit(ElectricResistanceUnit unit)

Parameters

unit ElectricResistanceUnit

Returns

ElectricResistance

A ElectricResistance with the specified unit.