QuantityTypes.Dynamic
4.99.4
See the version list below for details.
dotnet add package QuantityTypes.Dynamic --version 4.99.4
NuGet\Install-Package QuantityTypes.Dynamic -Version 4.99.4
<PackageReference Include="QuantityTypes.Dynamic" Version="4.99.4" />
paket add QuantityTypes.Dynamic --version 4.99.4
#r "nuget: QuantityTypes.Dynamic, 4.99.4"
// Install QuantityTypes.Dynamic as a Cake Addin
#addin nuget:?package=QuantityTypes.Dynamic&version=4.99.4
// Install QuantityTypes.Dynamic as a Cake Tool
#tool nuget:?package=QuantityTypes.Dynamic&version=4.99.4
# QuantityTypes
## Features
- [Strongly typed](http://en.wikipedia.org/wiki/Strong_typing) arithmetics of [physical quantities](http://en.wikipedia.org/wiki/Physical_quantity)
- Implemented as [value types](https://msdn.microsoft.com/en-us/library/s1ax56ch.aspx)
- Parsing from strings
- Formatting to strings
- Operators
- Unit conversion
- Extendable (create more quantity types, add units)
- Configurable (set default units for parsing and formatting)
- [NuGet package](QuantityTypes)
## Examples
``` csharp
Length s = 100 * Length.Metre;
Time t = 9.58 * Time.Second;
Velocity v = s / t;
Console.WriteLine(v);
Console.WriteLine(v.ToString("0.00[km/h]"));
Console.WriteLine("Speed: {0:0.00[!km/h] kmph}", v);
Mass m = Mass.Parse("92 kg");
double massInPounds = m / Mass.Pound;
Temperature temp = 100 * Temperature.DegreeCelsius;
double tempInFahrenheit = temp.ConvertTo(Temperature.DegreeFahrenheit);
```
# Change Log
## 5.0.0
### Added
- GitHub workflows (#113)
- Publish to GitHub packages (#114)
- Examples with System.Text.Json (#108)
### Removed
- net45 target (#109)
## 4.0.0
### Added
- Imperial units
- NaN, PositiveInfinity and NegativeInfinity quantities (#83)
- LinearMassDensity (#82)
- Scandinavian mile length unit (#88)
- Custom length example (#89)
### Changed
- Target netstandard1.3 and net45 (#97)
### Fixed
- Null reference exception in QuantityJsonConverter (#85)
- Migrate projects to netstandard (#94)
- TryParse of `null` should return `false` (#96)
## 3.0.1
### Changed
- IQuantity depends on IXmlSerializable - changed XML serialization (#62)
- Xml serialization without units (#66)
- Moved CSV functionality to QuantityTypes.Csv (#67)
- Moved dynamic types to separate project (#71)
- Signing the QuantityTypes assembly (#51)
### Added
- t/m^3 density unit (#80)
- TimeSpan extension methods (#43)
- Format with conversion, without showing unit (#52)
- Moment type (#11)
### Fixed
- lb/gal unit (#1)
## 2.0.1
### Changed
- Target netstandard 1.0
## 2.0.0
### Changed
- Target netstandard 1.1
## 1.1.0
### Added
- Torque units: N*cm, N*mm (#8)
- Use GitHub as source server (#12)
- Unit prefixes and operator overloads for electrical units
- Lighting calculations
### Changed
- Refactor UnitProvider.RegisterUnits to extension methods (#6)
- Rename DegreeKelvin to Kelvin and delete "degK" unit (#30)
- Case sensitive unit prefixes
- Switch PCL project to profile 328
### Fixed
- Support parsing of "'" units (#20)
Product | Versions 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 | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 was computed. netstandard2.1 was computed. |
.NET Framework | net46 was computed. 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 | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 1.3
- NETStandard.Library (>= 1.6.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.