Skip to content

Commit 1c9a687

Browse files
authored
Update README.md
1 parent 6b3edba commit 1c9a687

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Features:
4747
* Roslyn Analyzers and CodeFixes help the developers to implement the Smart Enums correctly
4848
* [Allows iteration over all items](https://github.com/PawelGerr/Thinktecture.Runtime.Extensions/wiki/Smart-Enums#what-is-implemented-for-you)
4949
* [Allows custom properties and methods](https://github.com/PawelGerr/Thinktecture.Runtime.Extensions/wiki/Smart-Enums#adding-behavior)
50-
* [Switch-casemap](https://github.com/PawelGerr/Thinktecture.Runtime.Extensions/wiki/Smart-Enums#switch-casemap)
50+
* [Switch-case/Map](https://github.com/PawelGerr/Thinktecture.Runtime.Extensions/wiki/Smart-Enums#switch-casemap)
5151
* Provides appropriate constructor, based on the specified properties/fields
5252
* Provides means for lookup, cast and type conversion from key-type to Smart Enum and vice versa
5353
* Provides proper implementation of `Equals`, `GetHashCode`, `ToString` and equality comparison via `==` and `!=`
@@ -173,6 +173,10 @@ returnValue = productType.Switch(logger,
173173
ProductType.Groceries, static l => "Switch with Func<T>: Groceries",
174174
ProductType.Housewares, static l => "Switch with Func<T>: Housewares");
175175

176+
// Maps an item to another instance
177+
returnValue = productType.Map(ProductType.Groceries, "Map: Groceries",
178+
ProductType.Housewares, "Map: Housewares");
179+
176180
------------
177181

178182
// Implements IParsable<T> which is especially helpful with minimal web apis.

0 commit comments

Comments
 (0)