protected MeasureUnit(MeasureUnitTypes unit, string name, string symbol) { unitSymbol = symbol; unitType = unit; this.name = name; }
public static MeasureUnit FindUnit(MeasureUnitTypes t) { foreach (var mu in units) { if (mu.UnitType == t) { return(mu); } } return(null); }