Struct ConcentrationInWater
Represents Concentration in water
Assembly: Meadow.Units.dll
View Source
[Serializable]
public struct ConcentrationInWater : IUnit<ConcentrationInWater, ConcentrationInWater.UnitType>, IUnit, IComparable, IFormattable, IConvertible, IEquatable<double>, IComparable<double>
Implements:
Meadow.Units.IUnit<Meadow.Units.ConcentrationInWater,Meadow.Units.ConcentrationInWater.UnitType>, Meadow.Units.IUnit, System.IComparable, System.IFormattable, System.IConvertible, System.IEquatable<System.Double>, System.IComparable<System.Double>
Properties
Zero
Gets a ConcentrationInWater of 0
View Source
public static ConcentrationInWater Zero { get; }
PartsPerHundred
Get ConcentrationInWater in parts per 100
View Source
public double PartsPerHundred { get; }
PartsPerThousand
Get ConcentrationInWater in parts per 1000
View Source
public double PartsPerThousand { get; }
PartsPerMillion
Get ConcentrationInWater in parts per 1,000,000
View Source
public double PartsPerMillion { get; }
PartsPerBillion
Get ConcentrationInWater in parts per 1,000,000,000
View Source
public double PartsPerBillion { get; }
PartsPerTrillion
Get ConcentrationInWater in parts per 1,000,000,000,000
View Source
public double PartsPerTrillion { get; }
GramsPerCubicMeter
Get ConcentrationInWater in Grams Per Cubic Meter
View Source
public double GramsPerCubicMeter { get; }
MicrogramsPerLiter
Get ConcentrationInWater in Micrograms Per Liter
View Source
public double MicrogramsPerLiter { get; }
MilligramsPerLiter
Get ConcentrationInWater in Milligrams Per Liter
View Source
public double MilligramsPerLiter { get; }
GramsPerLiter
Get ConcentrationInWater in Milligrams Per Liter
View Source
public double GramsPerLiter { get; }
KilogramsPerLiter
Get ConcentrationInWater in Milligrams Per Liter
View Source
public double KilogramsPerLiter { get; }
Methods
FromCanonical(double)
Creates a ConcentrationInWater instance from a canonical (PartsPerMillion) value
View Source
public static ConcentrationInWater FromCanonical(double value)
Returns
Meadow.Units.ConcentrationInWater
Parameters
| Type | Name |
|---|---|
System.Double | value |
ToCanonical()
Gets the value of the ConcentrationInWater in Canonical (PartsPerMillion) units
View Source
public double ToCanonical()
Returns
System.Double
GetCanonicalUnitType()
Gets the enum value that represents the canonical unit of measurement for this type.
View Source
public ConcentrationInWater.UnitType GetCanonicalUnitType()
Returns
Meadow.Units.ConcentrationInWater.UnitType: The canonical unit type
From(UnitType)
Get ConcentrationInWater for a specific unit
View Source
[Pure]
public double From(ConcentrationInWater.UnitType convertTo)
Returns
System.Double: value as a double
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Units.ConcentrationInWater.UnitType | convertTo | unit |
Equals(object)
Compare two ConcentrationInWater objects
View Source
[Pure]
public override bool Equals(object obj)
Returns
System.Boolean: true if equal
Parameters
| Type | Name |
|---|---|
System.Object | obj |
GetHashCode()
Get hash of ConcentrationInWater object
View Source
[Pure]
public override int GetHashCode()
Returns
System.Int32: int32 hash of object
Equals(ConcentrationInWater)
Compare to another ConcentrationInWater objects
View Source
[Pure]
public bool Equals(ConcentrationInWater other)
Returns
System.Boolean: true if equal
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Units.ConcentrationInWater | other | The object to compare |
CompareTo(ConcentrationInWater)
Compare to another ConcentrationInWater object
View Source
[Pure]
public int CompareTo(ConcentrationInWater other)
Returns
System.Int32: 0 if equal
Parameters
| Type | Name |
|---|---|
| Meadow.Units.ConcentrationInWater | other |
Abs()
Returns the absolute value of the Meadow.Units.ConcentrationInWater
View Source
[Pure]
public ConcentrationInWater Abs()
Returns
Meadow.Units.ConcentrationInWater
ToString()
Get a string representation of the object
View Source
[Pure]
public override string ToString()
Returns
System.String: A string representing the object
ToString(string, IFormatProvider)
Get a string representation of the object
View Source
[Pure]
public string ToString(string format, IFormatProvider formatProvider)
Returns
System.String: A string representing the object
Parameters
| Type | Name | Description |
|---|---|---|
System.String | format | format |
System.IFormatProvider | formatProvider | format provider |
CompareTo(object)
Compare to another ConcentrationInWater object
View Source
[Pure]
public int CompareTo(object obj)
Returns
System.Int32: 0 if equal
Parameters
| Type | Name | Description |
|---|---|---|
System.Object | obj | The other ConcentrationInWater cast to object |
GetTypeCode()
Get type code of object
View Source
[Pure]
public TypeCode GetTypeCode()
Returns
System.TypeCode: The TypeCode
ToBoolean(IFormatProvider)
Convert to boolean
View Source
[Pure]
public bool ToBoolean(IFormatProvider provider)
Returns
System.Boolean: bool representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToByte(IFormatProvider)
Convert to byte
View Source
[Pure]
public byte ToByte(IFormatProvider provider)
Returns
System.Byte: byte representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToChar(IFormatProvider)
Convert to char
View Source
[Pure]
public char ToChar(IFormatProvider provider)
Returns
System.Char: char representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToDateTime(IFormatProvider)
Convert to DateTime
View Source
[Pure]
public DateTime ToDateTime(IFormatProvider provider)
Returns
System.DateTime: DateTime representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToDecimal(IFormatProvider)
Convert to Decimal
View Source
[Pure]
public decimal ToDecimal(IFormatProvider provider)
Returns
System.Decimal: Decimal representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToDouble(IFormatProvider)
Convert to double
View Source
[Pure]
public double ToDouble(IFormatProvider provider)
Returns
System.Double: double representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToInt16(IFormatProvider)
Convert to in16
View Source
[Pure]
public short ToInt16(IFormatProvider provider)
Returns
System.Int16: int16 representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToInt32(IFormatProvider)
Convert to int32
View Source
[Pure]
public int ToInt32(IFormatProvider provider)
Returns
System.Int32: int32 representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToInt64(IFormatProvider)
Convert to int64
View Source
[Pure]
public long ToInt64(IFormatProvider provider)
Returns
System.Int64: int64 representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToSByte(IFormatProvider)
Convert to sbyte
View Source
[Pure]
public sbyte ToSByte(IFormatProvider provider)
Returns
System.SByte: sbyte representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToSingle(IFormatProvider)
Convert to float
View Source
[Pure]
public float ToSingle(IFormatProvider provider)
Returns
System.Single: float representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToString(IFormatProvider)
Convert to string
View Source
[Pure]
public string ToString(IFormatProvider provider)
Returns
System.String: string representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToType(Type, IFormatProvider)
Convert to type
View Source
[Pure]
public object ToType(Type conversionType, IFormatProvider provider)
Returns
System.Object: type representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.Type | conversionType | type to convert to |
System.IFormatProvider | provider | format provider |
ToUInt16(IFormatProvider)
Convert to uint16
View Source
[Pure]
public ushort ToUInt16(IFormatProvider provider)
Returns
System.UInt16: uint16 representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToUInt32(IFormatProvider)
Convert to uint32
View Source
[Pure]
public uint ToUInt32(IFormatProvider provider)
Returns
System.UInt32: uint32 representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
ToUInt64(IFormatProvider)
Convert to uint64
View Source
[Pure]
public ulong ToUInt64(IFormatProvider provider)
Returns
System.UInt64: uint64 representation of the object
Parameters
| Type | Name | Description |
|---|---|---|
System.IFormatProvider | provider | format provider |
CompareTo(double?)
Compare the default value to a double
View Source
[Pure]
public int CompareTo(double? other)
Returns
System.Int32: 0 if equal
Parameters
| Type | Name | Description |
|---|---|---|
System.Nullable<System.Double> | other | value to compare |
Equals(double?)
Compare the default value to a double
View Source
[Pure]
public bool Equals(double? other)
Returns
System.Boolean: 0 if equal
Parameters
| Type | Name | Description |
|---|---|---|
System.Nullable<System.Double> | other | value to compare |
Equals(double)
Compare the default value to a double
View Source
[Pure]
public bool Equals(double other)
Returns
System.Boolean: 0 if equal
Parameters
| Type | Name | Description |
|---|---|---|
System.Double | other | value to compare |
CompareTo(double)
Compare the default value to a double
View Source
[Pure]
public int CompareTo(double other)
Returns
System.Int32: 0 if equal
Parameters
| Type | Name | Description |
|---|---|---|
System.Double | other | value to compare |
Implements
Meadow.Units.IUnit<Meadow.Units.ConcentrationInWater,Meadow.Units.ConcentrationInWater.UnitType>- Meadow.Units.IUnit
System.IComparableSystem.IFormattableSystem.IConvertibleSystem.IEquatable<System.Double>System.IComparable<System.Double>