You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@ Everyone have written their share of trivial conversions - or less obvious ones
8
8
9
9
Stop littering your code with unnecessary calculations, Units.NET gives you all the common units of measurement and the conversions between them. It is lightweight and thoroughly tested.
10
10
11
+
### Upgrading from 3.x to 4.x?
12
+
See [Upgrading from 3.x to 4.x](https://github.com/angularsen/UnitsNet/wiki/Upgrading-from-3.x-to-4.x).
11
13
12
14
### Build Targets
13
15
@@ -24,6 +26,7 @@ Stop littering your code with unnecessary calculations, Units.NET gives you all
24
26
*[Static typing](#static-typing) to avoid ambiguous values or units
25
27
*[Operator overloads](#operator-overloads) for arithmetic on quantities
26
28
*[Parse and ToString()](#culture) supports cultures and localization
29
+
*[Dynamically parsing and converting](#dynamic-parsing) quantities and units
27
30
*[Example: Creating a unit converter app](#example-app)
28
31
*[Example: WPF app using IValueConverter to parse quantities from input](#example-wpf-app-using-ivalueconverter-to-parse-quantities-from-input)
29
32
*[Precision and accuracy](#precision)
@@ -119,7 +122,7 @@ Unfortunately there is no built-in way to avoid this, either you need to ensure
119
122
Example:
120
123
`Length.Parse("1 pt")` throws `AmbiguousUnitParseException` with message `Cannot parse "pt" since it could be either of these: DtpPoint, PrinterPoint`.
121
124
122
-
### Dynamically Parsing and Converting Quantities
125
+
### <aname="dynamic-parsing"></a>Dynamically Parsing and Converting Quantities
123
126
Sometimes you need to work with quantities and units at runtime, such as parsing user input.
124
127
There are three classes to help with this:
125
128
-[UnitParser](UnitsNet/CustomCode/UnitParser.cs) for parsing unit abbreviation strings like `cm` to `LengthUnit.Centimeter`
0 commit comments