Skip to content

Commit 67f2629

Browse files
authored
Merge pull request #498 from angularsen/v4-readme
Update README with v4 changes
2 parents 134d075 + a0ab229 commit 67f2629

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

README.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,18 @@ Stop littering your code with unnecessary calculations, Units.NET gives you all
1111

1212
### Build Targets
1313

14-
* .NET Standard 1.0
14+
* .NET Standard 2.0
1515
* .NET 4.0
16-
* .NET 3.5 Client
1716
* [Windows Runtime Component](https://docs.microsoft.com/en-us/windows/uwp/winrt-components/) for UWP apps (JavaScript, C++ or C#)
1817

1918

2019
### Overview
2120

22-
* [50+ quantities with a total of 600+ units](UnitsNet/GeneratedCode/Units) generated from [JSON](Common/UnitDefinitions/) by [Powershell scripts](UnitsNet/Scripts)
23-
* [1000+ unit tests](https://ci.appveyor.com/project/angularsen/unitsnet) on conversions and localizations
21+
* [89 quantities with over 750 units](UnitsNet/GeneratedCode/Units) generated from [JSON](Common/UnitDefinitions/) by [Powershell scripts](UnitsNet/Scripts)
22+
* [1900+ unit tests](https://ci.appveyor.com/project/angularsen/unitsnet) on conversions and localizations
2423
* Immutable structs that implement `Equatable`, `IComparable`
2524
* [Static typing](#static-typing) to avoid ambiguous values or units
2625
* [Operator overloads](#operator-overloads) for arithmetic on quantities
27-
* [Extension methods](#extension-methods) for short-hand creation and conversions
2826
* [Parse and ToString()](#culture) supports cultures and localization
2927
* [Example: Creating a unit converter app](#example-app)
3028
* [Example: WPF app using IValueConverter to parse quantities from input](#example-wpf-app-using-ivalueconverter-to-parse-quantities-from-input)
@@ -76,21 +74,6 @@ Acceleration a2 = Force.FromNewtons(100) / Mass.FromKilograms(20);
7674
RotationalSpeed r = Angle.FromDegrees(90) / TimeSpan.FromSeconds(2);
7775
```
7876

79-
### <a name="extension-methods"></a>Extension Methods
80-
81-
All units have associated extension methods for a really compact, expressive way to construct values or do arithmetic.
82-
```C#
83-
using UnitsNet.Extensions.NumberToDuration;
84-
using UnitsNet.Extensions.NumberToLength;
85-
using UnitsNet.Extensions.NumberToTimeSpan;
86-
87-
Speed speed = 30.Kilometers() / 1.Hours(); // 30 km/h (using Duration type)
88-
Length distance = speed * 2.h(); // 60 km (using TimeSpan type)
89-
90-
Acceleration stdGravity = 9.80665.MetersPerSecondSquared();
91-
Force weight = 80.Kilograms() * stdGravity; // 80 kilograms-force or 784.532 newtons
92-
```
93-
9477
### <a name="culture"></a>Culture and Localization
9578

9679
The culture for abbreviations defaults to Thread.CurrentUICulture and falls back to US English if not defined. Thread.CurrentCulture affects number formatting unless a custom culture is specified. The relevant methods are:

0 commit comments

Comments
 (0)