Pregunta

In silverlight-MVVM applications, we have to use some kind of mediator/even aggregator file..to commuunicate between different viewmodels.

But I can see that these files maintains list(or dictionary) of objects ...

wont this be using huge amount of memory...? And in case of a web pplication (if it is WPF, that is okay)...is this something recommended ?

Any help would be appreciated. Thanks in advance!

¿Fue útil?

Solución

No. Remember it is not making copies of the objects, just pointers to them. However, some implementations of this pattern can cause memory leaks if you do not unregister your objects when you are done with them.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top