c# - Mvvm light messenger strange working -


i think question weird. example have code like

messenger.default.register<binaryselectorcommunicator>(this, (emp) => {     if (emp.option == ((int)games.highlow).tostring())     {         db = null;         db = new higlow();         db.boxes = new observablecollection<boxstruct>();     } }); 

it's working in debug mode compiler enter in each row. when adding new function

messenger.default.register<binaryselectorcommunicator>(this, (emp) => {     if (emp.option == ((int)games.highlow).tostring())     {         db = null;         db = new higlow();         db.boxes = new observablecollection<boxstruct>();         db.inputassets = new observablecollection<string>((from x in inputdata select x.id).take(1));     } }); 

it not work. compiler in debug mode not enter messenger. know question weird. why happen in theory? it's throw exception?


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -