Ejemplo n.º 1
0
 static UnitConverter()
 {
     Default = new UnitConverter();
     RegisterDefaultConversions(Default);
 }
Ejemplo n.º 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);
 }