摘要: Unity是微软在CodePlex上的一个开源项目,可用于依赖注入、控制反转,类似Spring,下面是使用示例:1.先来定义几个接口、类1 namespace UnityTest2 {3 public interface IRun4 {5 void Run();6 }7 }View Code : IRun1 namespace UnityTest2 {3 public class Pet4 {5 public string Name { set; get; }6 }7 }View Code : Pet 1 usin... 阅读全文
posted @ 2013-11-04 16:43 菩提树下的杨过 阅读(3124) 评论(0) 推荐(0) 编辑