摘要:
今天在群中有人问关于泛型类型的注册和使用。我在这里做一个简单的Demo例子ServiceRegistry.Current .Register(typeof(IList<>),typeof(List<>));//注册契约 IList<>,组件List<>Assert.IsTrue(ServiceRegistry.HasRegister(typeof(IList<>)));Assert.IsTrue(ServiceRegistry.HasRegister(typeof(IList<int>)));Assert.IsTrue(S 阅读全文
posted @ 2012-05-21 13:45
风云
阅读(348)
评论(0)
推荐(0)

浙公网安备 33010602011771号