Skip to main content

Struct Density

Represents Density

Assembly: Meadow.Units.dll
View Source
[Serializable]
public struct Density : IComparable, IFormattable, IConvertible, IEquatable<double>, IComparable<double>

Implements:
System.IComparable, System.IFormattable, System.IConvertible, System.IEquatable<System.Double>, System.IComparable<System.Double>

Properties

MicroGramsPerMetersCubed

Get the density in micrograms per meters cubed

View Source
public double MicroGramsPerMetersCubed { get; }

MilliGramsPerMetersCubed

Get the density in milligrams per meters cubed

View Source
public double MilliGramsPerMetersCubed { get; }

GramsPerCentimetersCubed

Get the density in grams per centimeters cubed

View Source
public double GramsPerCentimetersCubed { get; }

GramsPerMetersCubed

Get the density in grams per meters cubed

View Source
public double GramsPerMetersCubed { get; }

GramsPerLiter

Get the density in grams per liter cubed

View Source
public double GramsPerLiter { get; }

KilogramsPerMetersCubed

Get the density in kilograms per meters cubed

View Source
public double KilogramsPerMetersCubed { get; }

OuncesPerInchesCubed

Get the density in ounces per inches cubed

View Source
public double OuncesPerInchesCubed { get; }

OuncesPerFeetCubed

Get the density in ounces per feet cubed

View Source
public double OuncesPerFeetCubed { get; }

PoundsPerInchesCubed

Get the density in pounds per inches cubed

View Source
public double PoundsPerInchesCubed { get; }

PoundsPerFeetCubed

Get the density in pounds per feet cubed

View Source
public double PoundsPerFeetCubed { get; }

Water

Get the density relative to water

View Source
public double Water { get; }

Methods

From(UnitType)

Get a double value for a specific unit

View Source
[Pure]
public double From(Density.UnitType convertTo)
Returns

System.Double: the converted value

Parameters
TypeNameDescription
Meadow.Units.Density.UnitTypeconvertTounit to covert to

Equals(object)

Compare to another Density object

View Source
[Pure]
public override bool Equals(object obj)
Returns

System.Boolean: true if equal

Parameters
TypeNameDescription
System.ObjectobjThe object to compare

GetHashCode()

Get hash of object

View Source
[Pure]
public override int GetHashCode()
Returns

System.Int32: int32 hash value### Equals(Density) Compare to another Density object

View Source
[Pure]
public bool Equals(Density other)
Returns

System.Boolean: true if equal

Parameters
TypeNameDescription
Meadow.Units.DensityotherThe object to compare

CompareTo(Density)

Compare to another Density object

View Source
[Pure]
public int CompareTo(Density other)
Returns

System.Int32: 0 if equal

Parameters
TypeName
Meadow.Units.Densityother

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
TypeNameDescription
System.Stringformatformat
System.IFormatProviderformatProviderformat provider

CompareTo(object)

Compare to another Density object

View Source
[Pure]
public int CompareTo(object obj)
Returns

System.Int32: 0 if equal

Parameters
TypeNameDescription
System.ObjectobjThe other Density 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
TypeNameDescription
System.IFormatProviderproviderformat provider

ToByte(IFormatProvider)

Convert to byte

View Source
[Pure]
public byte ToByte(IFormatProvider provider)
Returns

System.Byte: byte representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat provider

ToChar(IFormatProvider)

Convert to char

View Source
[Pure]
public char ToChar(IFormatProvider provider)
Returns

System.Char: char representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat provider

ToDateTime(IFormatProvider)

Convert to DateTime

View Source
[Pure]
public DateTime ToDateTime(IFormatProvider provider)
Returns

System.DateTime: DateTime representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat provider

ToDecimal(IFormatProvider)

Convert to Decimal

View Source
[Pure]
public decimal ToDecimal(IFormatProvider provider)
Returns

System.Decimal: Decimal representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat provider

ToDouble(IFormatProvider)

Convert to double

View Source
[Pure]
public double ToDouble(IFormatProvider provider)
Returns

System.Double: double representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat provider

ToInt16(IFormatProvider)

Convert to in16

View Source
[Pure]
public short ToInt16(IFormatProvider provider)
Returns

System.Int16: int16 representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat provider

ToInt32(IFormatProvider)

Convert to int32

View Source
[Pure]
public int ToInt32(IFormatProvider provider)
Returns

System.Int32: int32 representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat provider

ToInt64(IFormatProvider)

Convert to int64

View Source
[Pure]
public long ToInt64(IFormatProvider provider)
Returns

System.Int64: int64 representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat provider

ToSByte(IFormatProvider)

Convert to sbyte

View Source
[Pure]
public sbyte ToSByte(IFormatProvider provider)
Returns

System.SByte: sbyte representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat provider

ToSingle(IFormatProvider)

Convert to float

View Source
[Pure]
public float ToSingle(IFormatProvider provider)
Returns

System.Single: float representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat provider

ToString(IFormatProvider)

Convert to string

View Source
[Pure]
public string ToString(IFormatProvider provider)
Returns

System.String: string representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat 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
TypeNameDescription
System.TypeconversionTypetype to convert to
System.IFormatProviderproviderformat provider

ToUInt16(IFormatProvider)

Convert to uint16

View Source
[Pure]
public ushort ToUInt16(IFormatProvider provider)
Returns

System.UInt16: uint16 representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat provider

ToUInt32(IFormatProvider)

Convert to uint32

View Source
[Pure]
public uint ToUInt32(IFormatProvider provider)
Returns

System.UInt32: uint32 representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat provider

ToUInt64(IFormatProvider)

Convert to uint64

View Source
[Pure]
public ulong ToUInt64(IFormatProvider provider)
Returns

System.UInt64: uint64 representation of the object

Parameters
TypeNameDescription
System.IFormatProviderproviderformat 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
TypeNameDescription
System.Nullable<System.Double>othervalue 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
TypeNameDescription
System.Nullable<System.Double>othervalue 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
TypeNameDescription
System.Doubleothervalue 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
TypeNameDescription
System.Doubleothervalue to compare

Implements

  • System.IComparable
  • System.IFormattable
  • System.IConvertible
  • System.IEquatable<System.Double>
  • System.IComparable<System.Double>