.NET Standard 2.0
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, C# scripting and .NET Interactive. 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 Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
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 652 9/11/2018
0.0.0 607 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.