Table of Contents

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 double

The numeric value to construct this quantity with.

unit MassConcentrationUnit

The 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

MassConcentrationUnit

CentigramsPerDeciliter

Gets a double value of this quantity converted into CentigramPerDeciliter

public double CentigramsPerDeciliter { get; }

Property Value

double

CentigramsPerLiter

Gets a double value of this quantity converted into CentigramPerLiter

public double CentigramsPerLiter { get; }

Property Value

double

CentigramsPerMicroliter

Gets a double value of this quantity converted into CentigramPerMicroliter

public double CentigramsPerMicroliter { get; }

Property Value

double

CentigramsPerMilliliter

Gets a double value of this quantity converted into CentigramPerMilliliter

public double CentigramsPerMilliliter { get; }

Property Value

double

DecigramsPerDeciliter

Gets a double value of this quantity converted into DecigramPerDeciliter

public double DecigramsPerDeciliter { get; }

Property Value

double

DecigramsPerLiter

Gets a double value of this quantity converted into DecigramPerLiter

public double DecigramsPerLiter { get; }

Property Value

double

DecigramsPerMicroliter

Gets a double value of this quantity converted into DecigramPerMicroliter

public double DecigramsPerMicroliter { get; }

Property Value

double

DecigramsPerMilliliter

Gets a double value of this quantity converted into DecigramPerMilliliter

public double DecigramsPerMilliliter { get; }

Property Value

double

GramsPerCubicCentimeter

Gets a double value of this quantity converted into GramPerCubicCentimeter

public double GramsPerCubicCentimeter { get; }

Property Value

double

GramsPerCubicMeter

Gets a double value of this quantity converted into GramPerCubicMeter

public double GramsPerCubicMeter { get; }

Property Value

double

GramsPerCubicMillimeter

Gets a double value of this quantity converted into GramPerCubicMillimeter

public double GramsPerCubicMillimeter { get; }

Property Value

double

GramsPerDeciliter

Gets a double value of this quantity converted into GramPerDeciliter

public double GramsPerDeciliter { get; }

Property Value

double

GramsPerLiter

Gets a double value of this quantity converted into GramPerLiter

public double GramsPerLiter { get; }

Property Value

double

GramsPerMicroliter

Gets a double value of this quantity converted into GramPerMicroliter

public double GramsPerMicroliter { get; }

Property Value

double

GramsPerMilliliter

Gets a double value of this quantity converted into GramPerMilliliter

public double GramsPerMilliliter { get; }

Property Value

double

KilogramsPerCubicCentimeter

Gets a double value of this quantity converted into KilogramPerCubicCentimeter

public double KilogramsPerCubicCentimeter { get; }

Property Value

double

KilogramsPerCubicMeter

Gets a double value of this quantity converted into KilogramPerCubicMeter

public double KilogramsPerCubicMeter { get; }

Property Value

double

KilogramsPerCubicMillimeter

Gets a double value of this quantity converted into KilogramPerCubicMillimeter

public double KilogramsPerCubicMillimeter { get; }

Property Value

double

KilogramsPerLiter

Gets a double value of this quantity converted into KilogramPerLiter

public double KilogramsPerLiter { get; }

Property Value

double

KilopoundsPerCubicFoot

Gets a double value of this quantity converted into KilopoundPerCubicFoot

public double KilopoundsPerCubicFoot { get; }

Property Value

double

KilopoundsPerCubicInch

Gets a double value of this quantity converted into KilopoundPerCubicInch

public double KilopoundsPerCubicInch { get; }

Property Value

double

MaxValue

Represents the largest possible value of MassConcentration.

public static MassConcentration MaxValue { get; }

Property Value

MassConcentration

MicrogramsPerCubicMeter

Gets a double value of this quantity converted into MicrogramPerCubicMeter

public double MicrogramsPerCubicMeter { get; }

Property Value

double

MicrogramsPerDeciliter

Gets a double value of this quantity converted into MicrogramPerDeciliter

public double MicrogramsPerDeciliter { get; }

Property Value

double

MicrogramsPerLiter

Gets a double value of this quantity converted into MicrogramPerLiter

public double MicrogramsPerLiter { get; }

Property Value

double

MicrogramsPerMicroliter

Gets a double value of this quantity converted into MicrogramPerMicroliter

public double MicrogramsPerMicroliter { get; }

Property Value

double

MicrogramsPerMilliliter

Gets a double value of this quantity converted into MicrogramPerMilliliter

public double MicrogramsPerMilliliter { get; }

Property Value

double

MilligramsPerCubicMeter

Gets a double value of this quantity converted into MilligramPerCubicMeter

public double MilligramsPerCubicMeter { get; }

Property Value

double

MilligramsPerDeciliter

Gets a double value of this quantity converted into MilligramPerDeciliter

public double MilligramsPerDeciliter { get; }

Property Value

double

MilligramsPerLiter

Gets a double value of this quantity converted into MilligramPerLiter

public double MilligramsPerLiter { get; }

Property Value

double

MilligramsPerMicroliter

Gets a double value of this quantity converted into MilligramPerMicroliter

public double MilligramsPerMicroliter { get; }

Property Value

double

MilligramsPerMilliliter

Gets a double value of this quantity converted into MilligramPerMilliliter

public double MilligramsPerMilliliter { get; }

Property Value

double

MinValue

Represents the smallest possible value of MassConcentration.

public static MassConcentration MinValue { get; }

Property Value

MassConcentration

NanogramsPerDeciliter

Gets a double value of this quantity converted into NanogramPerDeciliter

public double NanogramsPerDeciliter { get; }

Property Value

double

NanogramsPerLiter

Gets a double value of this quantity converted into NanogramPerLiter

public double NanogramsPerLiter { get; }

Property Value

double

NanogramsPerMicroliter

Gets a double value of this quantity converted into NanogramPerMicroliter

public double NanogramsPerMicroliter { get; }

Property Value

double

NanogramsPerMilliliter

Gets a double value of this quantity converted into NanogramPerMilliliter

public double NanogramsPerMilliliter { get; }

Property Value

double

OuncesPerImperialGallon

Gets a double value of this quantity converted into OuncePerImperialGallon

public double OuncesPerImperialGallon { get; }

Property Value

double

OuncesPerUSGallon

Gets a double value of this quantity converted into OuncePerUSGallon

public double OuncesPerUSGallon { get; }

Property Value

double

PicogramsPerDeciliter

Gets a double value of this quantity converted into PicogramPerDeciliter

public double PicogramsPerDeciliter { get; }

Property Value

double

PicogramsPerLiter

Gets a double value of this quantity converted into PicogramPerLiter

public double PicogramsPerLiter { get; }

Property Value

double

PicogramsPerMicroliter

Gets a double value of this quantity converted into PicogramPerMicroliter

public double PicogramsPerMicroliter { get; }

Property Value

double

PicogramsPerMilliliter

Gets a double value of this quantity converted into PicogramPerMilliliter

public double PicogramsPerMilliliter { get; }

Property Value

double

PoundsPerCubicFoot

Gets a double value of this quantity converted into PoundPerCubicFoot

public double PoundsPerCubicFoot { get; }

Property Value

double

PoundsPerCubicInch

Gets a double value of this quantity converted into PoundPerCubicInch

public double PoundsPerCubicInch { get; }

Property Value

double

PoundsPerImperialGallon

Gets a double value of this quantity converted into PoundPerImperialGallon

public double PoundsPerImperialGallon { get; }

Property Value

double

PoundsPerUSGallon

Gets a double value of this quantity converted into PoundPerUSGallon

public double PoundsPerUSGallon { get; }

Property Value

double

SlugsPerCubicFoot

Gets a double value of this quantity converted into SlugPerCubicFoot

public double SlugsPerCubicFoot { get; }

Property Value

double

TonnesPerCubicCentimeter

Gets a double value of this quantity converted into TonnePerCubicCentimeter

public double TonnesPerCubicCentimeter { get; }

Property Value

double

TonnesPerCubicMeter

Gets a double value of this quantity converted into TonnePerCubicMeter

public double TonnesPerCubicMeter { get; }

Property Value

double

TonnesPerCubicMillimeter

Gets a double value of this quantity converted into TonnePerCubicMillimeter

public double TonnesPerCubicMillimeter { get; }

Property Value

double

Unit

public MassConcentrationUnit Unit { get; }

Property Value

MassConcentrationUnit

Value

The numeric value this quantity was constructed with.

public double Value { get; }

Property Value

double

Zero

Gets an instance of this quantity with a value of 0 in the base unit Second.

public static MassConcentration Zero { get; }

Property Value

MassConcentration

Methods

As(MassConcentrationUnit)

Convert to the unit representation unit.

public double As(MassConcentrationUnit unit)

Parameters

unit MassConcentrationUnit

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 double

Value to convert from.

fromUnit MassConcentrationUnit

Unit to convert from.

Returns

MassConcentration

MassConcentration unit value.

FromCentigramsPerDeciliter(double)

public static MassConcentration FromCentigramsPerDeciliter(double centigramsperdeciliter)

Parameters

centigramsperdeciliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromCentigramsPerLiter(double)

public static MassConcentration FromCentigramsPerLiter(double centigramsperliter)

Parameters

centigramsperliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromCentigramsPerMicroliter(double)

public static MassConcentration FromCentigramsPerMicroliter(double centigramspermicroliter)

Parameters

centigramspermicroliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromCentigramsPerMilliliter(double)

public static MassConcentration FromCentigramsPerMilliliter(double centigramspermilliliter)

Parameters

centigramspermilliliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromDecigramsPerDeciliter(double)

public static MassConcentration FromDecigramsPerDeciliter(double decigramsperdeciliter)

Parameters

decigramsperdeciliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromDecigramsPerLiter(double)

public static MassConcentration FromDecigramsPerLiter(double decigramsperliter)

Parameters

decigramsperliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromDecigramsPerMicroliter(double)

public static MassConcentration FromDecigramsPerMicroliter(double decigramspermicroliter)

Parameters

decigramspermicroliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromDecigramsPerMilliliter(double)

public static MassConcentration FromDecigramsPerMilliliter(double decigramspermilliliter)

Parameters

decigramspermilliliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromGramsPerCubicCentimeter(double)

public static MassConcentration FromGramsPerCubicCentimeter(double gramspercubiccentimeter)

Parameters

gramspercubiccentimeter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromGramsPerCubicMeter(double)

public static MassConcentration FromGramsPerCubicMeter(double gramspercubicmeter)

Parameters

gramspercubicmeter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromGramsPerCubicMillimeter(double)

public static MassConcentration FromGramsPerCubicMillimeter(double gramspercubicmillimeter)

Parameters

gramspercubicmillimeter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromGramsPerDeciliter(double)

public static MassConcentration FromGramsPerDeciliter(double gramsperdeciliter)

Parameters

gramsperdeciliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromGramsPerLiter(double)

public static MassConcentration FromGramsPerLiter(double gramsperliter)

Parameters

gramsperliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromGramsPerMicroliter(double)

public static MassConcentration FromGramsPerMicroliter(double gramspermicroliter)

Parameters

gramspermicroliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromGramsPerMilliliter(double)

public static MassConcentration FromGramsPerMilliliter(double gramspermilliliter)

Parameters

gramspermilliliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilogramsPerCubicCentimeter(double)

public static MassConcentration FromKilogramsPerCubicCentimeter(double kilogramspercubiccentimeter)

Parameters

kilogramspercubiccentimeter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilogramsPerCubicMeter(double)

public static MassConcentration FromKilogramsPerCubicMeter(double kilogramspercubicmeter)

Parameters

kilogramspercubicmeter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilogramsPerCubicMillimeter(double)

public static MassConcentration FromKilogramsPerCubicMillimeter(double kilogramspercubicmillimeter)

Parameters

kilogramspercubicmillimeter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilogramsPerLiter(double)

public static MassConcentration FromKilogramsPerLiter(double kilogramsperliter)

Parameters

kilogramsperliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilopoundsPerCubicFoot(double)

public static MassConcentration FromKilopoundsPerCubicFoot(double kilopoundspercubicfoot)

Parameters

kilopoundspercubicfoot double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromKilopoundsPerCubicInch(double)

public static MassConcentration FromKilopoundsPerCubicInch(double kilopoundspercubicinch)

Parameters

kilopoundspercubicinch double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMicrogramsPerCubicMeter(double)

public static MassConcentration FromMicrogramsPerCubicMeter(double microgramspercubicmeter)

Parameters

microgramspercubicmeter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMicrogramsPerDeciliter(double)

public static MassConcentration FromMicrogramsPerDeciliter(double microgramsperdeciliter)

Parameters

microgramsperdeciliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMicrogramsPerLiter(double)

public static MassConcentration FromMicrogramsPerLiter(double microgramsperliter)

Parameters

microgramsperliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMicrogramsPerMicroliter(double)

public static MassConcentration FromMicrogramsPerMicroliter(double microgramspermicroliter)

Parameters

microgramspermicroliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMicrogramsPerMilliliter(double)

public static MassConcentration FromMicrogramsPerMilliliter(double microgramspermilliliter)

Parameters

microgramspermilliliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMilligramsPerCubicMeter(double)

public static MassConcentration FromMilligramsPerCubicMeter(double milligramspercubicmeter)

Parameters

milligramspercubicmeter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMilligramsPerDeciliter(double)

public static MassConcentration FromMilligramsPerDeciliter(double milligramsperdeciliter)

Parameters

milligramsperdeciliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMilligramsPerLiter(double)

public static MassConcentration FromMilligramsPerLiter(double milligramsperliter)

Parameters

milligramsperliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMilligramsPerMicroliter(double)

public static MassConcentration FromMilligramsPerMicroliter(double milligramspermicroliter)

Parameters

milligramspermicroliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMilligramsPerMilliliter(double)

public static MassConcentration FromMilligramsPerMilliliter(double milligramspermilliliter)

Parameters

milligramspermilliliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromNanogramsPerDeciliter(double)

public static MassConcentration FromNanogramsPerDeciliter(double nanogramsperdeciliter)

Parameters

nanogramsperdeciliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromNanogramsPerLiter(double)

public static MassConcentration FromNanogramsPerLiter(double nanogramsperliter)

Parameters

nanogramsperliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromNanogramsPerMicroliter(double)

public static MassConcentration FromNanogramsPerMicroliter(double nanogramspermicroliter)

Parameters

nanogramspermicroliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromNanogramsPerMilliliter(double)

public static MassConcentration FromNanogramsPerMilliliter(double nanogramspermilliliter)

Parameters

nanogramspermilliliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromOuncesPerImperialGallon(double)

public static MassConcentration FromOuncesPerImperialGallon(double ouncesperimperialgallon)

Parameters

ouncesperimperialgallon double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromOuncesPerUSGallon(double)

public static MassConcentration FromOuncesPerUSGallon(double ouncesperusgallon)

Parameters

ouncesperusgallon double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPicogramsPerDeciliter(double)

public static MassConcentration FromPicogramsPerDeciliter(double picogramsperdeciliter)

Parameters

picogramsperdeciliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPicogramsPerLiter(double)

public static MassConcentration FromPicogramsPerLiter(double picogramsperliter)

Parameters

picogramsperliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPicogramsPerMicroliter(double)

public static MassConcentration FromPicogramsPerMicroliter(double picogramspermicroliter)

Parameters

picogramspermicroliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPicogramsPerMilliliter(double)

public static MassConcentration FromPicogramsPerMilliliter(double picogramspermilliliter)

Parameters

picogramspermilliliter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPoundsPerCubicFoot(double)

public static MassConcentration FromPoundsPerCubicFoot(double poundspercubicfoot)

Parameters

poundspercubicfoot double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPoundsPerCubicInch(double)

public static MassConcentration FromPoundsPerCubicInch(double poundspercubicinch)

Parameters

poundspercubicinch double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPoundsPerImperialGallon(double)

public static MassConcentration FromPoundsPerImperialGallon(double poundsperimperialgallon)

Parameters

poundsperimperialgallon double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromPoundsPerUSGallon(double)

public static MassConcentration FromPoundsPerUSGallon(double poundsperusgallon)

Parameters

poundsperusgallon double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromSlugsPerCubicFoot(double)

public static MassConcentration FromSlugsPerCubicFoot(double slugspercubicfoot)

Parameters

slugspercubicfoot double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromTonnesPerCubicCentimeter(double)

public static MassConcentration FromTonnesPerCubicCentimeter(double tonnespercubiccentimeter)

Parameters

tonnespercubiccentimeter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromTonnesPerCubicMeter(double)

public static MassConcentration FromTonnesPerCubicMeter(double tonnespercubicmeter)

Parameters

tonnespercubicmeter double

Returns

MassConcentration

Exceptions

ArgumentException

If value is NaN or Infinity.

FromTonnesPerCubicMillimeter(double)

public static MassConcentration FromTonnesPerCubicMillimeter(double tonnespercubicmillimeter)

Parameters

tonnespercubicmillimeter double

Returns

MassConcentration

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

unit MassConcentrationUnit

Returns

MassConcentration

A MassConcentration with the specified unit.