public IConversion GetConverter(Unit from, Unit to) { var seq = new ConversionTracker(this); var conversionSequence = seq.FindConversionSequence(from, to); if (conversionSequence == null) throw new InvalidOperationException("No conversion could be found between the provided units."); return conversionSequence; }
public IConversion GetConverter(Unit from, Unit to) { var seq = new ConversionTracker(this); var conversionSequence = seq.FindConversionSequence(from, to); if (conversionSequence == null) { throw new InvalidOperationException("No conversion could be found between the provided units."); } return(conversionSequence); }