public GasConcentration(GasType gasType, double concentration) { _type = gasType; _concentration = concentration; }
/// <summary> /// Creates a new instance of GasConcentration class when gas type code is provided. /// </summary> public GasConcentration(string code, double concentration) { _type = GasType.Cache[code]; _concentration = concentration; }