Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add VisualizerResult with instance of view model #1489
At the moment the
However, sometimes it's convenient to access the used VM in cases like this:
At the moment, one has to manually instantiate the view model and pass the instance into the
The idea is to introduce a new class:
With implicit operator overloads to bool, we should be able to still use this (commonly used) code:
Yeah it does, both
We use that for 2 reasons. 1 to reduce the complexity of a method (keeps SonarQube happy) and 2 to access the ViewModel.
I don’t see any issue with the return type though but I also wonder what will happen with ViewModels that implement the disposable interface.