Struct MassConcentration
- Namespace
- UnitsNet
- Assembly
- UnitsNet.MassConcentration.dll
In chemistry, the mass concentration ρi (or γi) is defined as the mass of a constituent mi divided by the volume of the mixture V
public struct MassConcentration
Remarks
Constructors
MassConcentration(double, MassConcentrationUnit)
Creates the quantity with the given numeric value and unit.
public MassConcentration(double value, MassConcentrationUnit unit)
Parameters
value
doubleThe numeric value to construct this quantity with.
unit
MassConcentrationUnitThe unit representation to construct this quantity with.
Exceptions
- ArgumentException
If value is NaN or Infinity.
Properties
BaseUnit
The base unit of MassConcentration, which is Second. All conversions go via this value.
public static MassConcentrationUnit BaseUnit { get; }
Property Value
CentigramsPerDeciliter
Gets a double value of this quantity converted into CentigramPerDeciliter
public double CentigramsPerDeciliter { get; }
Property Value
CentigramsPerLiter
Gets a double value of this quantity converted into CentigramPerLiter
public double CentigramsPerLiter { get; }
Property Value
CentigramsPerMicroliter
Gets a double value of this quantity converted into CentigramPerMicroliter
public double CentigramsPerMicroliter { get; }
Property Value
CentigramsPerMilliliter
Gets a double value of this quantity converted into CentigramPerMilliliter
public double CentigramsPerMilliliter { get; }
Property Value
DecigramsPerDeciliter
Gets a double value of this quantity converted into DecigramPerDeciliter
public double DecigramsPerDeciliter { get; }
Property Value
DecigramsPerLiter
Gets a double value of this quantity converted into DecigramPerLiter
public double DecigramsPerLiter { get; }
Property Value
DecigramsPerMicroliter
Gets a double value of this quantity converted into DecigramPerMicroliter
public double DecigramsPerMicroliter { get; }
Property Value
DecigramsPerMilliliter
Gets a double value of this quantity converted into DecigramPerMilliliter
public double DecigramsPerMilliliter { get; }
Property Value
GramsPerCubicCentimeter
Gets a double value of this quantity converted into GramPerCubicCentimeter
public double GramsPerCubicCentimeter { get; }
Property Value
GramsPerCubicMeter
Gets a double value of this quantity converted into GramPerCubicMeter
public double GramsPerCubicMeter { get; }
Property Value
GramsPerCubicMillimeter
Gets a double value of this quantity converted into GramPerCubicMillimeter
public double GramsPerCubicMillimeter { get; }
Property Value
GramsPerDeciliter
Gets a double value of this quantity converted into GramPerDeciliter
public double GramsPerDeciliter { get; }
Property Value
GramsPerLiter
Gets a double value of this quantity converted into GramPerLiter
public double GramsPerLiter { get; }
Property Value
GramsPerMicroliter
Gets a double value of this quantity converted into GramPerMicroliter
public double GramsPerMicroliter { get; }
Property Value
GramsPerMilliliter
Gets a double value of this quantity converted into GramPerMilliliter
public double GramsPerMilliliter { get; }
Property Value
KilogramsPerCubicCentimeter
Gets a double value of this quantity converted into KilogramPerCubicCentimeter
public double KilogramsPerCubicCentimeter { get; }
Property Value
KilogramsPerCubicMeter
Gets a double value of this quantity converted into KilogramPerCubicMeter
public double KilogramsPerCubicMeter { get; }
Property Value
KilogramsPerCubicMillimeter
Gets a double value of this quantity converted into KilogramPerCubicMillimeter
public double KilogramsPerCubicMillimeter { get; }
Property Value
KilogramsPerLiter
Gets a double value of this quantity converted into KilogramPerLiter
public double KilogramsPerLiter { get; }
Property Value
KilopoundsPerCubicFoot
Gets a double value of this quantity converted into KilopoundPerCubicFoot
public double KilopoundsPerCubicFoot { get; }
Property Value
KilopoundsPerCubicInch
Gets a double value of this quantity converted into KilopoundPerCubicInch
public double KilopoundsPerCubicInch { get; }
Property Value
MaxValue
Represents the largest possible value of MassConcentration.
public static MassConcentration MaxValue { get; }
Property Value
MicrogramsPerCubicMeter
Gets a double value of this quantity converted into MicrogramPerCubicMeter
public double MicrogramsPerCubicMeter { get; }
Property Value
MicrogramsPerDeciliter
Gets a double value of this quantity converted into MicrogramPerDeciliter
public double MicrogramsPerDeciliter { get; }
Property Value
MicrogramsPerLiter
Gets a double value of this quantity converted into MicrogramPerLiter
public double MicrogramsPerLiter { get; }
Property Value
MicrogramsPerMicroliter
Gets a double value of this quantity converted into MicrogramPerMicroliter
public double MicrogramsPerMicroliter { get; }
Property Value
MicrogramsPerMilliliter
Gets a double value of this quantity converted into MicrogramPerMilliliter
public double MicrogramsPerMilliliter { get; }
Property Value
MilligramsPerCubicMeter
Gets a double value of this quantity converted into MilligramPerCubicMeter
public double MilligramsPerCubicMeter { get; }
Property Value
MilligramsPerDeciliter
Gets a double value of this quantity converted into MilligramPerDeciliter
public double MilligramsPerDeciliter { get; }
Property Value
MilligramsPerLiter
Gets a double value of this quantity converted into MilligramPerLiter
public double MilligramsPerLiter { get; }
Property Value
MilligramsPerMicroliter
Gets a double value of this quantity converted into MilligramPerMicroliter
public double MilligramsPerMicroliter { get; }
Property Value
MilligramsPerMilliliter
Gets a double value of this quantity converted into MilligramPerMilliliter
public double MilligramsPerMilliliter { get; }
Property Value
MinValue
Represents the smallest possible value of MassConcentration.
public static MassConcentration MinValue { get; }
Property Value
NanogramsPerDeciliter
Gets a double value of this quantity converted into NanogramPerDeciliter
public double NanogramsPerDeciliter { get; }
Property Value
NanogramsPerLiter
Gets a double value of this quantity converted into NanogramPerLiter
public double NanogramsPerLiter { get; }
Property Value
NanogramsPerMicroliter
Gets a double value of this quantity converted into NanogramPerMicroliter
public double NanogramsPerMicroliter { get; }
Property Value
NanogramsPerMilliliter
Gets a double value of this quantity converted into NanogramPerMilliliter
public double NanogramsPerMilliliter { get; }
Property Value
OuncesPerImperialGallon
Gets a double value of this quantity converted into OuncePerImperialGallon
public double OuncesPerImperialGallon { get; }
Property Value
OuncesPerUSGallon
Gets a double value of this quantity converted into OuncePerUSGallon
public double OuncesPerUSGallon { get; }
Property Value
PicogramsPerDeciliter
Gets a double value of this quantity converted into PicogramPerDeciliter
public double PicogramsPerDeciliter { get; }
Property Value
PicogramsPerLiter
Gets a double value of this quantity converted into PicogramPerLiter
public double PicogramsPerLiter { get; }
Property Value
PicogramsPerMicroliter
Gets a double value of this quantity converted into PicogramPerMicroliter
public double PicogramsPerMicroliter { get; }
Property Value
PicogramsPerMilliliter
Gets a double value of this quantity converted into PicogramPerMilliliter
public double PicogramsPerMilliliter { get; }
Property Value
PoundsPerCubicFoot
Gets a double value of this quantity converted into PoundPerCubicFoot
public double PoundsPerCubicFoot { get; }
Property Value
PoundsPerCubicInch
Gets a double value of this quantity converted into PoundPerCubicInch
public double PoundsPerCubicInch { get; }
Property Value
PoundsPerImperialGallon
Gets a double value of this quantity converted into PoundPerImperialGallon
public double PoundsPerImperialGallon { get; }
Property Value
PoundsPerUSGallon
Gets a double value of this quantity converted into PoundPerUSGallon
public double PoundsPerUSGallon { get; }
Property Value
SlugsPerCubicFoot
Gets a double value of this quantity converted into SlugPerCubicFoot
public double SlugsPerCubicFoot { get; }
Property Value
TonnesPerCubicCentimeter
Gets a double value of this quantity converted into TonnePerCubicCentimeter
public double TonnesPerCubicCentimeter { get; }
Property Value
TonnesPerCubicMeter
Gets a double value of this quantity converted into TonnePerCubicMeter
public double TonnesPerCubicMeter { get; }
Property Value
TonnesPerCubicMillimeter
Gets a double value of this quantity converted into TonnePerCubicMillimeter
public double TonnesPerCubicMillimeter { get; }
Property Value
Unit
public MassConcentrationUnit Unit { get; }
Property Value
Value
The numeric value this quantity was constructed with.
public double Value { get; }
Property Value
Zero
Gets an instance of this quantity with a value of 0 in the base unit Second.
public static MassConcentration Zero { get; }
Property Value
Methods
As(MassConcentrationUnit)
Convert to the unit representation unit
.
public double As(MassConcentrationUnit unit)
Parameters
Returns
- double
Value converted to the specified unit.
From(double, MassConcentrationUnit)
Dynamically convert from value and unit enum MassConcentrationUnit to MassConcentration.
public static MassConcentration From(double value, MassConcentrationUnit fromUnit)
Parameters
value
doubleValue to convert from.
fromUnit
MassConcentrationUnitUnit to convert from.
Returns
- MassConcentration
MassConcentration unit value.
FromCentigramsPerDeciliter(double)
Creates a MassConcentration from CentigramPerDeciliter.
public static MassConcentration FromCentigramsPerDeciliter(double centigramsperdeciliter)
Parameters
centigramsperdeciliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromCentigramsPerLiter(double)
Creates a MassConcentration from CentigramPerLiter.
public static MassConcentration FromCentigramsPerLiter(double centigramsperliter)
Parameters
centigramsperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromCentigramsPerMicroliter(double)
Creates a MassConcentration from CentigramPerMicroliter.
public static MassConcentration FromCentigramsPerMicroliter(double centigramspermicroliter)
Parameters
centigramspermicroliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromCentigramsPerMilliliter(double)
Creates a MassConcentration from CentigramPerMilliliter.
public static MassConcentration FromCentigramsPerMilliliter(double centigramspermilliliter)
Parameters
centigramspermilliliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromDecigramsPerDeciliter(double)
Creates a MassConcentration from DecigramPerDeciliter.
public static MassConcentration FromDecigramsPerDeciliter(double decigramsperdeciliter)
Parameters
decigramsperdeciliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromDecigramsPerLiter(double)
Creates a MassConcentration from DecigramPerLiter.
public static MassConcentration FromDecigramsPerLiter(double decigramsperliter)
Parameters
decigramsperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromDecigramsPerMicroliter(double)
Creates a MassConcentration from DecigramPerMicroliter.
public static MassConcentration FromDecigramsPerMicroliter(double decigramspermicroliter)
Parameters
decigramspermicroliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromDecigramsPerMilliliter(double)
Creates a MassConcentration from DecigramPerMilliliter.
public static MassConcentration FromDecigramsPerMilliliter(double decigramspermilliliter)
Parameters
decigramspermilliliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromGramsPerCubicCentimeter(double)
Creates a MassConcentration from GramPerCubicCentimeter.
public static MassConcentration FromGramsPerCubicCentimeter(double gramspercubiccentimeter)
Parameters
gramspercubiccentimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromGramsPerCubicMeter(double)
Creates a MassConcentration from GramPerCubicMeter.
public static MassConcentration FromGramsPerCubicMeter(double gramspercubicmeter)
Parameters
gramspercubicmeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromGramsPerCubicMillimeter(double)
Creates a MassConcentration from GramPerCubicMillimeter.
public static MassConcentration FromGramsPerCubicMillimeter(double gramspercubicmillimeter)
Parameters
gramspercubicmillimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromGramsPerDeciliter(double)
Creates a MassConcentration from GramPerDeciliter.
public static MassConcentration FromGramsPerDeciliter(double gramsperdeciliter)
Parameters
gramsperdeciliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromGramsPerLiter(double)
Creates a MassConcentration from GramPerLiter.
public static MassConcentration FromGramsPerLiter(double gramsperliter)
Parameters
gramsperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromGramsPerMicroliter(double)
Creates a MassConcentration from GramPerMicroliter.
public static MassConcentration FromGramsPerMicroliter(double gramspermicroliter)
Parameters
gramspermicroliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromGramsPerMilliliter(double)
Creates a MassConcentration from GramPerMilliliter.
public static MassConcentration FromGramsPerMilliliter(double gramspermilliliter)
Parameters
gramspermilliliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilogramsPerCubicCentimeter(double)
Creates a MassConcentration from KilogramPerCubicCentimeter.
public static MassConcentration FromKilogramsPerCubicCentimeter(double kilogramspercubiccentimeter)
Parameters
kilogramspercubiccentimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilogramsPerCubicMeter(double)
Creates a MassConcentration from KilogramPerCubicMeter.
public static MassConcentration FromKilogramsPerCubicMeter(double kilogramspercubicmeter)
Parameters
kilogramspercubicmeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilogramsPerCubicMillimeter(double)
Creates a MassConcentration from KilogramPerCubicMillimeter.
public static MassConcentration FromKilogramsPerCubicMillimeter(double kilogramspercubicmillimeter)
Parameters
kilogramspercubicmillimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilogramsPerLiter(double)
Creates a MassConcentration from KilogramPerLiter.
public static MassConcentration FromKilogramsPerLiter(double kilogramsperliter)
Parameters
kilogramsperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilopoundsPerCubicFoot(double)
Creates a MassConcentration from KilopoundPerCubicFoot.
public static MassConcentration FromKilopoundsPerCubicFoot(double kilopoundspercubicfoot)
Parameters
kilopoundspercubicfoot
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromKilopoundsPerCubicInch(double)
Creates a MassConcentration from KilopoundPerCubicInch.
public static MassConcentration FromKilopoundsPerCubicInch(double kilopoundspercubicinch)
Parameters
kilopoundspercubicinch
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMicrogramsPerCubicMeter(double)
Creates a MassConcentration from MicrogramPerCubicMeter.
public static MassConcentration FromMicrogramsPerCubicMeter(double microgramspercubicmeter)
Parameters
microgramspercubicmeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMicrogramsPerDeciliter(double)
Creates a MassConcentration from MicrogramPerDeciliter.
public static MassConcentration FromMicrogramsPerDeciliter(double microgramsperdeciliter)
Parameters
microgramsperdeciliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMicrogramsPerLiter(double)
Creates a MassConcentration from MicrogramPerLiter.
public static MassConcentration FromMicrogramsPerLiter(double microgramsperliter)
Parameters
microgramsperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMicrogramsPerMicroliter(double)
Creates a MassConcentration from MicrogramPerMicroliter.
public static MassConcentration FromMicrogramsPerMicroliter(double microgramspermicroliter)
Parameters
microgramspermicroliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMicrogramsPerMilliliter(double)
Creates a MassConcentration from MicrogramPerMilliliter.
public static MassConcentration FromMicrogramsPerMilliliter(double microgramspermilliliter)
Parameters
microgramspermilliliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMilligramsPerCubicMeter(double)
Creates a MassConcentration from MilligramPerCubicMeter.
public static MassConcentration FromMilligramsPerCubicMeter(double milligramspercubicmeter)
Parameters
milligramspercubicmeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMilligramsPerDeciliter(double)
Creates a MassConcentration from MilligramPerDeciliter.
public static MassConcentration FromMilligramsPerDeciliter(double milligramsperdeciliter)
Parameters
milligramsperdeciliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMilligramsPerLiter(double)
Creates a MassConcentration from MilligramPerLiter.
public static MassConcentration FromMilligramsPerLiter(double milligramsperliter)
Parameters
milligramsperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMilligramsPerMicroliter(double)
Creates a MassConcentration from MilligramPerMicroliter.
public static MassConcentration FromMilligramsPerMicroliter(double milligramspermicroliter)
Parameters
milligramspermicroliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMilligramsPerMilliliter(double)
Creates a MassConcentration from MilligramPerMilliliter.
public static MassConcentration FromMilligramsPerMilliliter(double milligramspermilliliter)
Parameters
milligramspermilliliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromNanogramsPerDeciliter(double)
Creates a MassConcentration from NanogramPerDeciliter.
public static MassConcentration FromNanogramsPerDeciliter(double nanogramsperdeciliter)
Parameters
nanogramsperdeciliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromNanogramsPerLiter(double)
Creates a MassConcentration from NanogramPerLiter.
public static MassConcentration FromNanogramsPerLiter(double nanogramsperliter)
Parameters
nanogramsperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromNanogramsPerMicroliter(double)
Creates a MassConcentration from NanogramPerMicroliter.
public static MassConcentration FromNanogramsPerMicroliter(double nanogramspermicroliter)
Parameters
nanogramspermicroliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromNanogramsPerMilliliter(double)
Creates a MassConcentration from NanogramPerMilliliter.
public static MassConcentration FromNanogramsPerMilliliter(double nanogramspermilliliter)
Parameters
nanogramspermilliliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromOuncesPerImperialGallon(double)
Creates a MassConcentration from OuncePerImperialGallon.
public static MassConcentration FromOuncesPerImperialGallon(double ouncesperimperialgallon)
Parameters
ouncesperimperialgallon
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromOuncesPerUSGallon(double)
Creates a MassConcentration from OuncePerUSGallon.
public static MassConcentration FromOuncesPerUSGallon(double ouncesperusgallon)
Parameters
ouncesperusgallon
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPicogramsPerDeciliter(double)
Creates a MassConcentration from PicogramPerDeciliter.
public static MassConcentration FromPicogramsPerDeciliter(double picogramsperdeciliter)
Parameters
picogramsperdeciliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPicogramsPerLiter(double)
Creates a MassConcentration from PicogramPerLiter.
public static MassConcentration FromPicogramsPerLiter(double picogramsperliter)
Parameters
picogramsperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPicogramsPerMicroliter(double)
Creates a MassConcentration from PicogramPerMicroliter.
public static MassConcentration FromPicogramsPerMicroliter(double picogramspermicroliter)
Parameters
picogramspermicroliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPicogramsPerMilliliter(double)
Creates a MassConcentration from PicogramPerMilliliter.
public static MassConcentration FromPicogramsPerMilliliter(double picogramspermilliliter)
Parameters
picogramspermilliliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPoundsPerCubicFoot(double)
Creates a MassConcentration from PoundPerCubicFoot.
public static MassConcentration FromPoundsPerCubicFoot(double poundspercubicfoot)
Parameters
poundspercubicfoot
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPoundsPerCubicInch(double)
Creates a MassConcentration from PoundPerCubicInch.
public static MassConcentration FromPoundsPerCubicInch(double poundspercubicinch)
Parameters
poundspercubicinch
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPoundsPerImperialGallon(double)
Creates a MassConcentration from PoundPerImperialGallon.
public static MassConcentration FromPoundsPerImperialGallon(double poundsperimperialgallon)
Parameters
poundsperimperialgallon
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPoundsPerUSGallon(double)
Creates a MassConcentration from PoundPerUSGallon.
public static MassConcentration FromPoundsPerUSGallon(double poundsperusgallon)
Parameters
poundsperusgallon
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromSlugsPerCubicFoot(double)
Creates a MassConcentration from SlugPerCubicFoot.
public static MassConcentration FromSlugsPerCubicFoot(double slugspercubicfoot)
Parameters
slugspercubicfoot
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromTonnesPerCubicCentimeter(double)
Creates a MassConcentration from TonnePerCubicCentimeter.
public static MassConcentration FromTonnesPerCubicCentimeter(double tonnespercubiccentimeter)
Parameters
tonnespercubiccentimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromTonnesPerCubicMeter(double)
Creates a MassConcentration from TonnePerCubicMeter.
public static MassConcentration FromTonnesPerCubicMeter(double tonnespercubicmeter)
Parameters
tonnespercubicmeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromTonnesPerCubicMillimeter(double)
Creates a MassConcentration from TonnePerCubicMillimeter.
public static MassConcentration FromTonnesPerCubicMillimeter(double tonnespercubicmillimeter)
Parameters
tonnespercubicmillimeter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
ToUnit(MassConcentrationUnit)
Converts this MassConcentration to another MassConcentration with the unit representation unit
.
public MassConcentration ToUnit(MassConcentrationUnit unit)
Parameters
Returns
- MassConcentration
A MassConcentration with the specified unit.