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