Just used this program to run over a solution, and it threw an exception in this specific line: o.Screen() returned null.
By swapping where the Equals is called upon this exception no longer triggers and the program seems to run fine.
However since I don't know the architecture of this program, there could be a better fix, or this fix could have even more unintended side effects ... if there is, please let me know!
That's an interesting issue - seems like you have a control somewhere that is not on any screen - but it also isn't the app itself or the screen itself.
The fix looks good, thanks for this!
Just used this program to run over a solution, and it threw an exception in this specific line:
o.Screen()
returned null.By swapping where the Equals is called upon this exception no longer triggers and the program seems to run fine.
However since I don't know the architecture of this program, there could be a better fix, or this fix could have even more unintended side effects ... if there is, please let me know!