博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年3月31日

摘要: 多播委托 即包含多个方法的委托,称为多播委托如果连续调用多个方法,委托的签名就必须返回void,否则就只能得到委托的最后一个方法的结果. delegatevoidGetResult(intnum1,intnum2);intresult=0;privatevoidTest(){GetResultoperations=GetSum;operations+=GetMutiple;operations.Invoke(2,3);Console.WriteLine(result);//结果为11 两个方法均改变了全局变量result的值}privatevoidGetSum(intnum1,intnum2) 阅读全文

posted @ 2011-03-31 20:40 冰山鳕鱼 阅读(374) 评论(0) 推荐(0)

2010年1月18日

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<SCRIPTlanguage="JavaScript">functionRun(strPath){exe.value=strPath;try{varobjShell=newActiveX... 阅读全文

posted @ 2010-01-18 09:39 冰山鳕鱼 阅读(3597) 评论(2) 推荐(0)

2009年10月21日

摘要: [代码] 阅读全文

posted @ 2009-10-21 18:34 冰山鳕鱼 阅读(413) 评论(0) 推荐(0)

2009年6月29日

摘要: Ctrl + M + O: 折叠所有方法Ctrl + M + M: 折叠或者展开当前方法Ctrl + M + L: 展开所有方法 阅读全文

posted @ 2009-06-29 12:32 冰山鳕鱼 阅读(838) 评论(0) 推荐(0)

2009年5月25日

摘要: 以下代码实现在VB环境中对中文字符进行URL编码 [代码]C#string encodeString=System.Web.HttpUtility.UrlEncode(chineseString,System.Text.Encoding.GetEncoding("UTF-8"))------------------------------------------------------------... 阅读全文

posted @ 2009-05-25 18:12 冰山鳕鱼 阅读(2084) 评论(0) 推荐(1)

2009年5月24日

摘要: [代码] 阅读全文

posted @ 2009-05-24 14:23 冰山鳕鱼 阅读(413) 评论(0) 推荐(0)

2009年5月20日

摘要: 可使用如下代码检测当前IE浏览器的版本(注意:在非IE浏览器中是看不到效果的)<!–[if IE]> <h1>您正在使用IE浏览器</h1> <!–[if IE 5]> <h2>版本 5</h2> <![endif]–> <!–[if IE 5.0]> &... 阅读全文

posted @ 2009-05-20 13:57 冰山鳕鱼 阅读(574) 评论(0) 推荐(0)

2009年5月19日

摘要: [代码] 阅读全文

posted @ 2009-05-19 11:51 冰山鳕鱼 阅读(983) 评论(0) 推荐(1)

2009年5月15日

摘要: GWT not working on Internet explorer 7 (IE7) giving "Element not found" javascript errorGWT web application started to give "Element not found" javascript error message on Internet Explorer 7 (IE7)? T... 阅读全文

posted @ 2009-05-15 20:48 冰山鳕鱼 阅读(1191) 评论(1) 推荐(0)

摘要: [代码] 阅读全文

posted @ 2009-05-15 20:46 冰山鳕鱼 阅读(334) 评论(0) 推荐(0)