GuyDeYoyo.Temperature 1.0.0

dotnet add package GuyDeYoyo.Temperature --version 1.0.0
NuGet\Install-Package GuyDeYoyo.Temperature -Version 1.0.0
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="GuyDeYoyo.Temperature" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GuyDeYoyo.Temperature --version 1.0.0
#r "nuget: GuyDeYoyo.Temperature, 1.0.0"
#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 GuyDeYoyo.Temperature as a Cake Addin
#addin nuget:?package=GuyDeYoyo.Temperature&version=1.0.0

// Install GuyDeYoyo.Temperature as a Cake Tool
#tool nuget:?package=GuyDeYoyo.Temperature&version=1.0.0

Temperature DLL

An open source dynamic link library written in C#, providing methods for temperature conversions.

Supported Scales

  • Celsius
  • Fahrenheit
  • Kelvin
  • Newton
  • Rankine
  • Réaumur
  • Rømer

Installation

To add the library to your project, follow these steps:

  1. Download the latest release from the Releases page.
  2. Extract the downloaded ZIP file.
  3. Copy the temperature.dll file to your project's directory, for example in a folder called Libraries.
  4. Add the following code to your .csproj file, after </PropertyGroup>:
<ItemGroup>
  <Reference Include="Temperature">
    <SpecificVersion>false</SpecificVersion>
    <HintPath>Libraries\Temperature.dll</HintPath>
  </Reference>
</ItemGroup>

Usage

To use the library in your code, follow these steps:

  1. Import the DLL in your code:
using Temperature;
  1. Call the appropriate method to convert the temperature:
double celsius = 25;
double fahrenheit = Temperature.Celsius.ToFahrenheit(celsius);

or

double fahrenheit = 54;
double kelvin = Temperature.Convert(fahrenheit, "fahrenheit", "kelvin");

or

double kelvin = 77;
Dictionary<string, double> output = Temperature.ConvertAll(kelvin, "kelvin");

License

Licensed under MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.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
1.0.0 98 3/25/2024