摘要: WindowsPhone8 introduces the ability to use native code to implement WindowsPhone. In this section, we explain how you can use C++ in your app, and provide some recommended scenarios.When to use native code in your appAll WindowsPhone8 apps can use native code but not all apps need to. For many app 阅读全文
posted @ 2014-03-08 00:30 liucy 阅读(279) 评论(0) 推荐(0) 编辑
摘要: IOC容器的DI实现并不依赖于方法调用拦截,而是通过DI容器内部自己通过反射的方式生成需要的类型实例,并调用实例的成员。然后再把实例返回给容器外部环境使用。 Ninject本身及其扩展库,还针对特定的开发平台或项目类型提供了专用的DI支持,比如针对WPF/SL,针对ASP.NET MVC Ninject 的扩展库 也是基于Ninject核心库的,对于某些特定场景的功能补充 StandardKernel 是Ninject中的IOC容器类,Get方法是显式的得到某类型的实例, Bind方法是类型映射注册,注册以后,Ninject就可以根据程序的需要来提供实例创建。 using (var kerne 阅读全文
posted @ 2014-03-08 00:26 liucy 阅读(553) 评论(0) 推荐(0) 编辑