问题
Is their any IoC controllers available that will work on .NET Compact Framework?
回答1:
- http://code.google.com/p/compactcontainer/
- http://ninject.org/
回答2:
The OpenNETCF IoC framework supports the Compact Framework (as a first-class citizen), the full desktop framework, Mono for Android, MonoTouch and Windows Phone. It's also still active, with updates and fixes still being applied which can't be said about all of the other "CF supporting" frameworks.
回答3:
Ninject is a dependency injection framework that has a compact framework version.
However, in a constrained environment I would avoid using a framework and implement the inversion of control principles in my code instead.
回答4:
Here's a new one: Funq. Also check out the making-of screencasts.
来源:https://stackoverflow.com/questions/446033/ioc-di-container-that-supports-compact-framework