public SimpleUnitConversionGenerator(IUnitConversionMap <double> conversionMap) { if (null == conversionMap) { throw new ArgumentNullException("conversionMap"); } Contract.EndContractBlock(); _conversionMap = conversionMap; _conversionGraph = new UnitConversionGraph(conversionMap); }
public UnitConversionGraph(IUnitConversionMap <double> conversionMap) : base(null, conversionMap.EqualityComparer) { Contract.Requires(conversionMap != null); _conversionMap = conversionMap; }