Skip to content

Commit 9798dcd

Browse files
authored
README: Add dynamic parsing to TOC
1 parent 99d894b commit 9798dcd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Everyone have written their share of trivial conversions - or less obvious ones
88

99
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.
1010

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).
1113

1214
### Build Targets
1315

@@ -24,6 +26,7 @@ Stop littering your code with unnecessary calculations, Units.NET gives you all
2426
* [Static typing](#static-typing) to avoid ambiguous values or units
2527
* [Operator overloads](#operator-overloads) for arithmetic on quantities
2628
* [Parse and ToString()](#culture) supports cultures and localization
29+
* [Dynamically parsing and converting](#dynamic-parsing) quantities and units
2730
* [Example: Creating a unit converter app](#example-app)
2831
* [Example: WPF app using IValueConverter to parse quantities from input](#example-wpf-app-using-ivalueconverter-to-parse-quantities-from-input)
2932
* [Precision and accuracy](#precision)
@@ -119,7 +122,7 @@ Unfortunately there is no built-in way to avoid this, either you need to ensure
119122
Example:
120123
`Length.Parse("1 pt")` throws `AmbiguousUnitParseException` with message `Cannot parse "pt" since it could be either of these: DtpPoint, PrinterPoint`.
121124

122-
### Dynamically Parsing and Converting Quantities
125+
### <a name="dynamic-parsing"></a>Dynamically Parsing and Converting Quantities
123126
Sometimes you need to work with quantities and units at runtime, such as parsing user input.
124127
There are three classes to help with this:
125128
- [UnitParser](UnitsNet/CustomCode/UnitParser.cs) for parsing unit abbreviation strings like `cm` to `LengthUnit.Centimeter`

0 commit comments

Comments
 (0)