首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > measurement-structs

measurement-structs

  • 资源大小:10.04 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

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);

文 件 列 表

measurements-bin-windows
Measurements.dll
ReadMe.txt

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP