-
Couldn't load subscription status.
- Fork 4
Open
Description
Just had an example where I replaced Wheres and Selects with a DownCast, but it is awkward, because the solution before was fluent, and now it is mixed.
CannotReadRemoteService = DownCast<ServerIniUpdateSection.Exists>.From(_source.LeftOrNone())
.Select(s => s.IsServiceOnOtherMachine)
.GetOrElse(false);An extension version probably would look like this:
CannotReadRemoteService = _source
.LeftOrNone()
.DownCast<ServerIniUpdateSection.Exists>()
.Select(s => s.IsServiceOnOtherMachine)
.GetOrElse(false);Metadata
Metadata
Assignees
Labels
No labels