摘要: 一、结构体和类非常相似: 1.定义方式: public struct Student { string Name; int Age; } public class Question { int Number; string Content; } 2,两者都是container类型,这表示它们可以包含其他数据类型作为成员。 3,两者都拥有成员,包括:构造... 阅读全文
posted @ 2018-03-27 14:18 cz夏花 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 抽象属性: 抽象类可拥有抽象属性,这些属性在派生类中被实现。 public abstract class Person { public abstract string Name { get;set; } } class student:Person { public override string Name { get... 阅读全文
posted @ 2018-03-19 14:06 cz夏花 阅读(225) 评论(0) 推荐(0) 编辑
摘要: C#反射: 反射指程序可以访问,检测和修改它本身状态和行为的一种能力。 程序集包含模块,而模块包含类型,类型又包含成员。反射则提供了封装程序集,模块和类型的对象。 功能: 可以使用反射动态的创建类型的实例,将类型绑定到现有对象,或从现有对象中获取类型。然后,可以调用类型的方法和访问其字段和属性。 用途: 1.它允许在运行时查看特性(attrib... 阅读全文
posted @ 2018-03-19 14:00 cz夏花 阅读(129) 评论(0) 推荐(0) 编辑
摘要: c#特性: 特性(Attribute)是用于在运行时传递程序中的各种元素(比如类,方法,结构,枚举,组件等)的行为信息的声明标签。可以通过使用特性向程序添加声明性信息。一个声明性标签时通过放置在它它所应用的元素前面的方括号来描述的。 特性(Attribute)用于添加元数据,如编译器指令和注释,描述 阅读全文
posted @ 2018-03-19 13:33 cz夏花 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1.集合 List:将一推数据类型相同的数据放入到一个容器内,该容器就是集合,内存中开辟的一连串空间。 特点: 1)、可通过索引访问的对象的强类型。 2)、是ArrayList类的泛型等效类。 3)、可以使用一个整数索引访问此集合中的元素;索引从 零开始。 4)、允许重复元素。 List集合的方法: 01. Add 将对象添加到 List 的结尾处。 ... 阅读全文
posted @ 2018-02-28 12:44 cz夏花 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-02-07 20:48 cz夏花 阅读(442) 评论(0) 推荐(0) 编辑
摘要: html5唤醒iosAPP: ios9以下:用urlScheme方式:url identifer 可以用反转域名的方式,url Schemes 自己定义的 例如:url identifer为 com.xxx.x'x'x.x'x'xurl Schemes为:hzmj iOS9以上:使用universa 阅读全文
posted @ 2018-02-07 20:33 cz夏花 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 安卓工程需要先写个activity用来唤醒 类里面重写onCreate方法,设置唤醒 再在mainActivity向unity发送数据 通过Html唤醒 (以上内容仅供自己参考) 阅读全文
posted @ 2018-01-31 10:43 cz夏花 阅读(205) 评论(1) 推荐(0) 编辑
摘要: using System.Collections.Generic; using System; public class MessageCenter { private static MessageCenter instance; public static MessageCenter Instance { get { if (instance == ... 阅读全文
posted @ 2018-01-25 13:20 cz夏花 阅读(309) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; using Assets.Script.nn; /// /// 卡牌池 /// public class CardPool:MonoBehaviour { static Stack objectPool = new Stack... 阅读全文
posted @ 2018-01-19 11:07 cz夏花 阅读(147) 评论(0) 推荐(0) 编辑