In a console application from a static method in the main class program, I call:
internal class Module { public bool EnsureModuleLocalInstall() { if (CheckModuleUpToDateLocal()) return true; else if (DownloadComponentData()) if(InstallModuleLocal()) return true; return false; } } var availableModules = new List<Module>(); ...
I set a breakpoint and also checked the expected result (the module is installed locally), but the "EnsureModuleLocalInstall" method does not execute from all the instructions.
Am I missing something obvious or am expecting too much of the LINQ Where method and should I use LINQ ForEach?
source share