Struct ParticleDensity
Represents the density of particles per volume (typically in air)
Assembly: Meadow.Units.dll
View Source
[Serializable]
public struct ParticleDensity : IComparable, IFormattable, IConvertible, IEquatable<double>, IComparable<double>
Implements:
System.IComparable
, System.IFormattable
, System.IConvertible
, System.IEquatable<System.Double>
, System.IComparable<System.Double>
Properties
ParticlesPerLiter
Get the particle density in particles per liter
View Source
public double ParticlesPerLiter { get; }
ParticlesPerCentiliter
Get the particle density in particles per centiliter
View Source
public double ParticlesPerCentiliter { get; }
ParticlesPerMilliliter
Get the particle density in particles per milliliter
View Source
public double ParticlesPerMilliliter { get; }
Methods
From(UnitType)
Get a double value for a specific unit
View Source
[Pure]
public double From(ParticleDensity.UnitType convertTo)
Returns
System.Double
: the converted value
Parameters
Type | Name | Description |
---|---|---|
Meadow.Units.ParticleDensity.UnitType | convertTo | unit to convert to |
Equals(object)
Compare to another ParticleDensity object
View Source
[Pure]
public override bool Equals(object obj)
Returns
System.Boolean
: true if equal
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare |
GetHashCode()
Get hash of object
View Source
[Pure]
public override int GetHashCode()
Returns
System.Int32
: int32 hash value### Equals(ParticleDensity)
Compare to another ParticleDensity object
View Source
[Pure]
public bool Equals(ParticleDensity other)
Returns
System.Boolean
: true if equal
Parameters
Type | Name | Description |
---|---|---|
Meadow.Units.ParticleDensity | other | The object to compare |
CompareTo(ParticleDensity)
Compare to another ParticleDensity object
View Source
[Pure]
public int CompareTo(ParticleDensity other)
Returns
System.Int32
: 0 if equal
Parameters
Type | Name |
---|---|
Meadow.Units.ParticleDensity | other |
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 ParticleDensity object
View Source
[Pure]
public int CompareTo(object obj)
Returns
System.Int32
: 0 if equal
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The other ParticleDensity cast to object |
GetTypeCode()
Get type code of object
View Source
[Pure]
public TypeCode GetTypeCode()
Returns
System.TypeCode
: The TypeCode### 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 |
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 |
ToBoolean(IFormatProvider)
Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.
View Source
public bool ToBoolean(IFormatProvider provider)
Returns
System.Boolean
: A Boolean value equivalent to the value of this instance.
Parameters
Type | Name | Description |
---|---|---|
System.IFormatProvider | provider | An System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
ToChar(IFormatProvider)
Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information.
View Source
public char ToChar(IFormatProvider provider)
Returns
System.Char
: A Unicode character equivalent to the value of this instance.
Parameters
Type | Name | Description |
---|---|---|
System.IFormatProvider | provider | An System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
ToDateTime(IFormatProvider)
Converts the value of this instance to an equivalent System.DateTime
using the specified culture-specific formatting information.
View Source
public DateTime ToDateTime(IFormatProvider provider)
Returns
System.DateTime
: A System.DateTime
instance equivalent to the value of this instance.
Parameters
Type | Name | Description |
---|---|---|
System.IFormatProvider | provider | An System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implements
System.IComparable
System.IFormattable
System.IConvertible
System.IEquatable<System.Double>
System.IComparable<System.Double>