Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pimbrouwers committed Dec 11, 2024
1 parent 4acb473 commit b8d3cd3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Danom.Mvc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ public sealed class ResultController

## View

### Option

While not explicitly part of the `Danom.Mvc` library, there are some patterns that make rendering the `Option` type easier in Razor views. Two methods from the base library are especially valuable: `TryGet` and `ToString`.

The `TryGet` method is used to extract the value from an `Option` type. If the `Option` is `Some`, the value is assigned to the `out` parameter and the method returns `true`. If the `Option` is `None`, the method returns `false`.
Expand Down

0 comments on commit b8d3cd3

Please sign in to comment.