- 博客(4)
- 资源 (2)
- 收藏
- 关注
转载 c# sealed 的用法
sealed的中文意思是密封,故名思义,就是由它修饰的类或方法将不能被继承或是重写。 sealed关键字的作用: 在类声明中使用sealed可防止其它类继承此类;在方法声明中使用sealed修饰符可防止扩充类重写此方法。 sealed修饰符主要用于防止非有意的派生,但是它还能促使某些运行时优化。具体说来,由于密封类永远不会有任何派生类,所以对密
2010-02-06 23:24:00
652
原创 .net 中的viewstate
viewstate 简单来说就是为了在回传(IsPostBack属性)本页面时依然保存某些属性的值。 viewstate["yourname"] 返回的是一个object类,因此可以将对象保存在其中。 例如: string a = "a";string b = "b"; Hashtable ht = new Hashtable ();ht.Add("a",a);
2010-02-06 17:47:00
288
原创 .net 中的委托机制
.... namespace MyTest{ public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { this.Button1.Click += new EventHan
2010-02-05 15:38:00
237
原创 left join;right join;inner join;where
一道题目:大概是一个学生的主表,和一个学生成绩的子表.用left join;right join;inner join;where 语句查询.取结果. 学生信息主表:students成绩表:score 区别: select * from students left join score on students.id = score.sid // 取出stud
2010-01-28 13:28:00
473
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅