上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页
摘要: 1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 using UnityEditor; 5 using System; 6 using UObject = UnityEngine.Object; 7 using System.IO; 8 ... 阅读全文
posted @ 2019-04-09 15:58 小·糊涂仙 阅读(575) 评论(0) 推荐(0)
摘要: C#可空类型的实现逻辑: 1、装箱与拆箱 可空值类型的装箱:若可空值类型的为null,直接返回null,不进行任何装箱操作;否则进行正常的装箱操作. 可空值类型的拆箱操作:一个已装箱的值类型 T 可以拆箱为一个 T 或者 Nullable<T>;若已装箱的值类型为 null,拆箱为Nullable< 阅读全文
posted @ 2019-04-09 11:22 小·糊涂仙 阅读(852) 评论(0) 推荐(0)
摘要: 等价于: 阅读全文
posted @ 2019-04-09 11:15 小·糊涂仙 阅读(422) 评论(0) 推荐(0)
摘要: 1 using System; 2 3 namespace ConsoleApplication1 4 { 5 interface IInterface 6 { 7 void Add(int num); 8 } 9 10 struct Test : IInterface 11 { 12 public 阅读全文
posted @ 2019-04-08 20:48 小·糊涂仙 阅读(416) 评论(0) 推荐(0)
摘要: 测试工程: 链接:https://pan.baidu.com/s/13LDXG2Uk-nI80sXKguQBBw 提取码:l9oa 阅读全文
posted @ 2019-03-31 17:23 小·糊涂仙 阅读(2245) 评论(0) 推荐(0)
摘要: m_ 类的成员变量(member)sm_ 类的静态成员变量(static member)s_ 静态变量(static)g_ 外部全局变量(global)sg_ 静态全局变量(static global) n 整型和位域变量(number)e 枚举型变量(enumeration)c 字符型变量(cha 阅读全文
posted @ 2019-03-31 16:17 小·糊涂仙 阅读(3175) 评论(0) 推荐(0)
摘要: 1 using UnityEngine; 2 3 [ExecuteInEditMode] //添加脚本、启动、Stop的时候执行Awake() Start() 4 public class test : MonoBehaviour 5 { 6 [SerializeField] 7 int val; 8 void Awake() 9 { 10... 阅读全文
posted @ 2019-03-27 21:55 小·糊涂仙 阅读(2817) 评论(0) 推荐(0)
摘要: 不同的字符所占的字节是不同的。 ASCII码: 一个英文字母(不分大小写)占一个字节的空间,一个中文汉字占两个字节的空间。一个二进制数字序列,在计算机中作为一个数字单元,一般为8位二进制数,换算为十进制。最小值0,最大值255。如一个ASCII码就是一个字节。 UTF-8编码: 一个英文字符等于一个 阅读全文
posted @ 2019-03-26 10:59 小·糊涂仙 阅读(1539) 评论(0) 推荐(0)
摘要: 原文:http://www.cnblogs.com/zxin/archive/2013/01/26/2877765.html 一、校验数字的表达式 二、校验字符的表达式 三、特殊需求表达式 阅读全文
posted @ 2019-03-19 16:48 小·糊涂仙 阅读(234) 评论(0) 推荐(0)
摘要: 1024 byte = 1 kb 1024 kb = 1 mb 1024 mb = 1 gb 1024 gb = 1 tb 但是,存储设备的生成厂家的是以 1000 制的 阅读全文
posted @ 2019-03-15 13:34 小·糊涂仙 阅读(941) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页