New answers tagged

4

It shouldn't matter. finally blocks are special, but they are not special in a way that matters to your program. Finally blocks are special because, for example, the runtime will delay a thread abort exception until after control leaves a finally block. (And if you are now thinking "if I have an infinite loop inside a finally block doesn't that mean that ...


0

Whether or not you need to be purely event driven depends, of course, on your specific scenario. Assuming that you really do need to be, then you could solve the problem by: Storing a local, read-only copy of the data by listening for the different events and capturing the information in their payloads. Whilst this gives you fast(er) reads for that data, ...



Top 50 recent answers are included