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
Post a Comment