Characteristic Locus
Implements IUnitType System.IComparable System.IFormattable System.IConvertible System.IEquatable<System.Double> System.IComparable<System.Double>
Inherited Members System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetType()
Namespace Meadow.Units
Assembly Meadow.dll

Syntax

[Serializable]
public struct Voltage : IUnitType, IComparable, IFormattable, IConvertible, IEquatable<double>, IComparable<double>

Constructors

Voltage(Voltage)

Declaration
public Voltage(Voltage voltage)

Parameters

Type Name Description
Voltage voltage

Voltage(Double, Voltage.UnitType)

Creates a new Voltage object.

Declaration
public Voltage(double value, Voltage.UnitType type = Voltage.UnitType.Volts)

Parameters

Type Name Description
System.Double value

The Voltage value.

Voltage.UnitType type

Volts by default.

Properties

Gigavolts

Declaration
public double Gigavolts { get; }

Property Value

Type Description
System.Double

Kilovolts

Declaration
public double Kilovolts { get; }

Property Value

Type Description
System.Double

Megavolts

Declaration
public double Megavolts { get; }

Property Value

Type Description
System.Double

Microvolts

Declaration
public double Microvolts { get; }

Property Value

Type Description
System.Double

Millivolts

Declaration
public double Millivolts { get; }

Property Value

Type Description
System.Double

Statvolts

Declaration
public double Statvolts { get; }

Property Value

Type Description
System.Double

Volts

Declaration
public double Volts { get; }

Property Value

Type Description
System.Double

Methods

Abs()

Returns the absolute length, that is, the length without regards to negative polarity

Declaration
[Pure]
public Voltage Abs()

Returns

Type Description
Voltage

CompareTo(Voltage)

Declaration
[Pure]
public int CompareTo(Voltage other)

Parameters

Type Name Description
Voltage other

Returns

Type Description
System.Int32

CompareTo(Double)

Declaration
[Pure]
public int CompareTo(double other)

Parameters

Type Name Description
System.Double other

Returns

Type Description
System.Int32

CompareTo(Nullable<Double>)

Declaration
[Pure]
public int CompareTo(double? other)

Parameters

Type Name Description
System.Nullable<System.Double> other

Returns

Type Description
System.Int32

CompareTo(Object)

Declaration
[Pure]
public int CompareTo(object obj)

Parameters

Type Name Description
System.Object obj

Returns

Type Description
System.Int32

Equals(Voltage)

Declaration
[Pure]
public bool Equals(Voltage other)

Parameters

Type Name Description
Voltage other

Returns

Type Description
System.Boolean

Equals(Double)

Declaration
[Pure]
public bool Equals(double other)

Parameters

Type Name Description
System.Double other

Returns

Type Description
System.Boolean

Equals(Nullable<Double>)

Declaration
[Pure]
public bool Equals(double? other)

Parameters

Type Name Description
System.Nullable<System.Double> other

Returns

Type Description
System.Boolean

Equals(Object)

Declaration
[Pure]
public override bool Equals(object obj)

Parameters

Type Name Description
System.Object obj

Returns

Type Description
System.Boolean

Overrides

System.ValueType.Equals(System.Object)

From(Voltage.UnitType)

Declaration
[Pure]
public double From(Voltage.UnitType convertTo)

Parameters

Type Name Description
Voltage.UnitType convertTo

Returns

Type Description
System.Double

GetHashCode()

Declaration
[Pure]
public override int GetHashCode()

Returns

Type Description
System.Int32

Overrides

System.ValueType.GetHashCode()

GetTypeCode()

Declaration
[Pure]
public TypeCode GetTypeCode()

Returns

Type Description
System.TypeCode

ToBoolean(IFormatProvider)

Declaration
[Pure]
public bool ToBoolean(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.Boolean

ToByte(IFormatProvider)

Declaration
[Pure]
public byte ToByte(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.Byte

ToChar(IFormatProvider)

Declaration
[Pure]
public char ToChar(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.Char

ToDateTime(IFormatProvider)

Declaration
[Pure]
public DateTime ToDateTime(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.DateTime

ToDecimal(IFormatProvider)

Declaration
[Pure]
public decimal ToDecimal(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.Decimal

ToDouble(IFormatProvider)

Declaration
[Pure]
public double ToDouble(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.Double

ToInt16(IFormatProvider)

Declaration
[Pure]
public short ToInt16(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.Int16

ToInt32(IFormatProvider)

Declaration
[Pure]
public int ToInt32(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.Int32

ToInt64(IFormatProvider)

Declaration
[Pure]
public long ToInt64(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.Int64

ToSByte(IFormatProvider)

Declaration
[Pure]
public sbyte ToSByte(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.SByte

ToSingle(IFormatProvider)

Declaration
[Pure]
public float ToSingle(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.Single

ToString()

Declaration
[Pure]
public override string ToString()

Returns

Type Description
System.String

Overrides

System.ValueType.ToString()

ToString(IFormatProvider)

Declaration
[Pure]
public string ToString(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.String

ToString(String, IFormatProvider)

Declaration
[Pure]
public string ToString(string format, IFormatProvider formatProvider)

Parameters

Type Name Description
System.String format
System.IFormatProvider formatProvider

Returns

Type Description
System.String

ToType(Type, IFormatProvider)

Declaration
[Pure]
public object ToType(Type conversionType, IFormatProvider provider)

Parameters

Type Name Description
System.Type conversionType
System.IFormatProvider provider

Returns

Type Description
System.Object

ToUInt16(IFormatProvider)

Declaration
[Pure]
public ushort ToUInt16(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.UInt16

ToUInt32(IFormatProvider)

Declaration
[Pure]
public uint ToUInt32(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.UInt32

ToUInt64(IFormatProvider)

Declaration
[Pure]
public ulong ToUInt64(IFormatProvider provider)

Parameters

Type Name Description
System.IFormatProvider provider

Returns

Type Description
System.UInt64

Operators

Addition(Voltage, Voltage)

Declaration
[Pure]
public static Voltage operator +(Voltage lvalue, Voltage rvalue)

Parameters

Type Name Description
Voltage lvalue
Voltage rvalue

Returns

Type Description
Voltage

Equality(Voltage, Voltage)

Declaration
[Pure]
public static bool operator ==(Voltage left, Voltage right)

Parameters

Type Name Description
Voltage left
Voltage right

Returns

Type Description
System.Boolean

GreaterThan(Voltage, Voltage)

Declaration
[Pure]
public static bool operator>(Voltage left, Voltage right)

Parameters

Type Name Description
Voltage left
Voltage right

Returns

Type Description
System.Boolean

GreaterThanOrEqual(Voltage, Voltage)

Declaration
[Pure]
public static bool operator >=(Voltage left, Voltage right)

Parameters

Type Name Description
Voltage left
Voltage right

Returns

Type Description
System.Boolean

Inequality(Voltage, Voltage)

Declaration
[Pure]
public static bool operator !=(Voltage left, Voltage right)

Parameters

Type Name Description
Voltage left
Voltage right

Returns

Type Description
System.Boolean

LessThan(Voltage, Voltage)

Declaration
[Pure]
public static bool operator <(Voltage left, Voltage right)

Parameters

Type Name Description
Voltage left
Voltage right

Returns

Type Description
System.Boolean

LessThanOrEqual(Voltage, Voltage)

Declaration
[Pure]
public static bool operator <=(Voltage left, Voltage right)

Parameters

Type Name Description
Voltage left
Voltage right

Returns

Type Description
System.Boolean

Subtraction(Voltage, Voltage)

Declaration
[Pure]
public static Voltage operator -(Voltage lvalue, Voltage rvalue)

Parameters

Type Name Description
Voltage lvalue
Voltage rvalue

Returns

Type Description
Voltage