摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text; namespaceMyConsoleLambda{classProgram{privatestaticboolShowMsg(){Console.WriteLine("Msg");returntrue;} staticvoidMain(string[]args){intm=100;//Func<bool>fun=newFunc<bool>(()=>ShowMsg());//if(fun() 阅读全文
posted @ 2013-04-24 20:22 Predator 阅读(126) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConTest{ class Program { static void Main(string[] args) { DateTime dt1 = DateTime.Now.Date; DateTime dt2 = DateTime.Now.AddDays(1).Date; string dt3 = dt1.ToString("yyyy-MM-dd");//输出2013-4-22 System 阅读全文
posted @ 2013-04-24 18:27 Predator 阅读(138) 评论(0) 推荐(0) 编辑
摘要: //MethodInvoker的使用using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;namespace ConPra{ class Program { delegate int Show(int y); delegate void OK(); static void Main(string[] args) { int num=10; // Action myAction = new Action(); Show myShow 阅读全文
posted @ 2013-04-24 18:26 Predator 阅读(110) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Threading; namespaceWinConst{publicpartialclassForm3:Form{publicForm3(){InitializeComponent();this.progressBar1.Minimum= 阅读全文
posted @ 2013-04-24 18:24 Predator 阅读(170) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms; namespaceWinConst{publicpartialclassForm4:Form{privateList<Exchange>listExchange=newList<Exchange>();publicForm4(){ Ini 阅读全文
posted @ 2013-04-24 18:23 Predator 阅读(279) 评论(0) 推荐(0) 编辑