摘要: 这次的例子是学习Unity对泛型的支持,先看官方文档的说明吧。 Unity generic parameter injection configuration support for params and properties is provided by the GenericParameter class when using the API and by the genericParamet... 阅读全文
posted @ 2010-02-08 10:19 StreamFei 阅读(719) 评论(0) 推荐(0) 编辑
摘要: 在本文中,将研究Unity 配置文件的格式、配置的读取、通过示例说明实例的获取。1. Unity 配置文件的完整格式Unty ConfigCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<?xmlversion="1.0"encoding="u... 阅读全文
posted @ 2010-02-08 10:10 StreamFei 阅读(1190) 评论(0) 推荐(0) 编辑
摘要: 上次写了一个Unity的helloworld,就是将一个字符串注入到实例中。继续学习,这次注入数组类型和自定义的类。看代码…… public class TestClass { private string name; public string Name { get { return name; } set { name = value; } } } public class ArrayTest... 阅读全文
posted @ 2010-02-08 08:49 StreamFei 阅读(293) 评论(0) 推荐(0) 编辑