摘要: 在客户端要想 使用webservice的js对象 那么在webservice的cs文件里要加上下面这句[System.Web.Script.Services.ScriptService]具体的看这里 ,但是要想使用webservice的cs里的代码一定要加上上面这句http://www.cnblogs.com/teracy/archive/2007/09/07/885635.html 阅读全文
posted @ 2011-04-10 21:01 张土土 阅读(257) 评论(0) 推荐(0) 编辑
摘要: class Program { List<string> stringList = new List<string> {"abc","abcd","abcde","abcedf" }; static void Main(string[] args) { //Func的函数 是不能 使用 返回值为void 的函数 Func<string,string> del = (c) => { return c+"111"; }; Console.WriteLine( 阅读全文
posted @ 2011-04-10 14:07 张土土 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 有点像委托 但是 是委托吗 我不懂using System;using System.Collections.Generic;namespace ConsoleTest{ class Program { static void Main(string[] args) { List<Action> ls = new List<Action>(); for (int i = 0; i < 10; i++) { ls.Add(() => Console.WriteLine(i)); } foreach (Action action in ls) { action( 阅读全文
posted @ 2011-04-10 11:30 张土土 阅读(129) 评论(0) 推荐(0) 编辑