资 源 简 介
Measurements provides a collection of value-typed objects for converting and comparing differing units of measurement.
It"s main aim is to create a framework in which users can write plugins for their own measurement units and convert values in those units to equivalent values in other common units.
Temperature
```
var temp1 = Temperature.Create(57.23, Temperature.Celsius);
Console.WriteLine(temp1[Temperature.Kelvin]);
Console.WriteLine(temp1[Temperature.Celsius]);
Console.WriteLine(temp1[Temperature.Fahrenheit]);
var temp2 = Temperature.Create(32.94, Temperature.Fahrenheit);
Console.WriteLine(temp1 >= temp2);
Console.WriteLine(temp1 <= temp2);
Console.WriteLine(temp1 == temp2);
Console.WriteLine(temp1 != temp2);
Console.WriteLine(Temperature.Convert(43.23).From(Temperature.Celsius).To(Temperature.Fahrenheit));
```
Length
```
Length.Convert(23.2).From(Length.Centimeter).To(Length.Foot);