04 2007 档案

摘要: 6.1下面为用到委托的几种情况启动线程--在C#中,可以告诉计算机并行运行新的执行序列,这种序列就称为线程,通过System.Threading.Thread的一个实例使用方法Sta通用类库--在通用类库中执行子任务时,要用到委托。事件--GUI编程中也经常用盗委托事例:void EntryPoint(){//do anything;}//通过下面的代码执行新线程Thread NewThread ...阅读全文
posted @ 2007-04-07 20:49 DavidYou 阅读(50) | 评论 (0) 编辑
posted @ 2007-04-04 17:16 DavidYou 阅读(95) | 评论 (0) 编辑
摘要: 遍历所有行,获取对应行对应列值的统计,此函数写在RowDataBind事件中intmysum1=0;intmysum2=0;protectedvoidGridList_RowDataBound(objectsender,GridViewRowEventArgse){if(e.Row.RowType==DataControlRowType.DataRow){DataRowViewmyrows=(Da...阅读全文
posted @ 2007-04-04 17:13 DavidYou 阅读(119) | 评论 (0) 编辑
摘要: public voidmain(string[] args){Byte b = 255;checked{b++;}Console.WriteLine(b.ToString());}Results:Unhandled Exception :System.OverflowException:Arithmetic opertation resulted in an overflow at ...;if ...阅读全文
posted @ 2007-04-02 15:44 DavidYou 阅读(57) | 评论 (0) 编辑
摘要: Condition?True_Value:Flase_ValueExplain:if(Condition == True){return True_Value;}else{returnFlase_Value;}Condition:Boolean ExpressionTrue_Value:The Return Value When Condition Is TrueFalse_Value:The R...阅读全文
posted @ 2007-04-01 22:03 DavidYou 阅读(38) | 评论 (0) 编辑