static UnitConverter()
 {
     Default = new UnitConverter();
     RegisterDefaultConversions(Default);
 }
Beispiel #2
0
 /// <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);
 }