static UnitConverter() { Default = new UnitConverter(); RegisterDefaultConversions(Default); }
/// <summary> /// Creates a new <see cref="UnitConverter"/> instance with the <see cref="ConversionFunction"/> copied from <paramref name="other"/>. /// </summary> /// <param name="other">The <see cref="UnitConverter"/> to copy from.</param> public UnitConverter(UnitConverter other) { ConversionFunctions = new ConcurrentDictionary <ConversionFunctionLookupKey, ConversionFunction>(other.ConversionFunctions); }