摘要: 这次的例子是学习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) 编辑
摘要: 这个图是从官方文档里找到的,很有用的一张图,留着随时查看。 阅读全文
posted @ 2010-02-07 15:39 StreamFei 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 开始学习Unity 1.2了,因为英文不好,所以看了一天的文档才开始写程序,是一个用Unity实现的Helloworld程序,仅仅是把一个字符串注入到类中,然后从容器获取类,仅作为笔记。新建一个控制台应用程序,定义一个简单的类叫做CallMe public class CallMe { private String name; public String Name { get { return n... 阅读全文
posted @ 2010-02-07 14:29 StreamFei 阅读(329) 评论(0) 推荐(0) 编辑