摘要: boxing是什么意思?·················装箱就是把值类型转换成引用类型,反之就是拆箱。 int a=5; string ss=a;装箱 int a2=int.Parse(ss);拆箱哪些是值类型哪些是引用类型?值类型 值类型是在栈中分配内存,在声明时初始化才能使用,不能为nu... 阅读全文
posted @ 2016-01-10 16:01 BestKiller 阅读(178) 评论(0) 推荐(0) 编辑
摘要: document.getElementById("panelid").style.display="none";//hiddendocument.getElementById("panelid").style.display="block";//show 阅读全文
posted @ 2015-11-10 19:29 BestKiller 阅读(569) 评论(0) 推荐(0) 编辑
摘要: C# this指针的几种用法1、限定被相似的名称隐藏的成员C# 代码 复制public class ThisName { public string name = "张三"; public int num = 55; public ThisName() { } ... 阅读全文
posted @ 2015-11-03 21:24 BestKiller 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 对于简单的数组,只有固定的大小来初始化数组,才能使用它。 Animal [] animalArray = new Animal[2];而ArrayList集合不需要初始化大小 ArrayList animalArrayList= new ArrayList();这两家伙初始化也不同,大概是这样:... 阅读全文
posted @ 2015-11-03 15:21 BestKiller 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 在“重填”按钮属性中的"onclientclick"中输入“javascript:document.forms[0].reset()” 阅读全文
posted @ 2015-11-02 15:23 BestKiller 阅读(112) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace no1{ delegate int numberChang... 阅读全文
posted @ 2015-11-01 17:57 BestKiller 阅读(130) 评论(0) 推荐(0) 编辑