dotnet add package TBQ.Measurements --version
NuGet\Install-Package TBQ.Measurements -Version
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TBQ.Measurements" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TBQ.Measurements --version
#r "nuget: TBQ.Measurements,"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TBQ.Measurements as a Cake Addin
#addin nuget:?package=TBQ.Measurements&version=

// Install TBQ.Measurements as a Cake Tool
#tool nuget:?package=TBQ.Measurements&version=


A simple library that provides an easy way to manage multiple units within an application.

This package provides a unit type class for several types of common measurements, and derived classes for each unit within that measurement type. This allows functions to be built to accept the measurement type and be able to be passed a specific units from a user interface or other libraries and the function simply creates a new instance of the derived type it requires, and the library will handle the conversion.

Pending Changes / Features

  • Add a means to store unit information, which can be used to generate unit instances (useful for storing the users measurement unit preferences and using that to parse input throughout the entire program).
  • Add a means to parse a specified measurement type to any unit, using only user input text.
  • Add a means to parse to any measurement and unit type, using only user input text.
  • Add a means to access the available units within a measurement type (useful for providing preference options to a user, or compatability information to implimentors).
  • Add a means to access the available measurement types within the library.
  • Add additional measurement types such as:
    • Length
    • Pressure
    • Mass
    • Force
  • Add mechanics for standard scaling factors such as:
    • Micro
    • Milli
    • Kilo
    • Mega
  • Add multi-component expressions:
    • Pressure is returned by an operation of Force / Area
    • Work is returned by an operation of Force * Length


Reformatted the layout of the project package to separate different measurement types. Fixed a conversion issue with the Kelvin unit and added several alternative temperature units.

  • Fixed: an incorrect conversion in the Kelvin class.
  • Added: namespace TBQ.Measurements.Temperature
  • Added: class TBQ.Measurements.Temperature.Newton
  • Added: class TBQ.Measurements.Temperature.Rankine
  • Added: class TBQ.Measurements.Temperature.Reaumur
  • Added: class TBQ.Measurements.Temperature.Romer
  • Refactored: class TBQ.Measurements.Temperature ⇒ class TBQ.Measurements.Temperature.Temperature
  • Refactored: class TBQ.Measurements.Celsius ⇒ class TBQ.Measurements.Temperature.Celsius
  • Refactored: class TBQ.Measurements.Kelvin ⇒ class TBQ.Measurements.Temperature.Kelvin
  • Refactored: class TBQ.Measurements.Fahrenheit ⇒ class TBQ.Measurements.Temperature.Fahrenheit

Initial release. Built core mechanisms for highlighting similar measurement types and converting between different units of the same measurement type.

  • Added: namespace TBQ
  • Added: namespace TBQ.Measurements
  • Added: interface TBQ.Measurements.IUnit
  • Added: class TBQ.Measurements.Temperature
  • Added: class TBQ.Measurements.Celsius
  • Added: class TBQ.Measurements.Kelvin
  • Added: class TBQ.Measurements.Fahrenheit
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 796 9/11/2018
0.0.0 714 9/11/2018

Refactered the Temperature measurement under its own namespace. This structure will be used from now on with each measurement type using its own namespace to prevent naming collisions across different measurement types.
Fixed a error in the conversion to and from Kelvin.
Added Rankine (°R), Delisle (°De), Newton (°N), Réaumur (°Ré) and Rømer (°Rø) to the Temperature measurement.