摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Collections.ObjectModel; namespaceConsoleApplication1{classProgram{delegateTMyAdd<T>(Ta,Tb);staticvoidMain(string[]args){varmethodInt=newMyAdd<int>(Add);;Console.WriteLine(methodInt(100,100));varmet 阅读全文
posted @ 2013-05-04 19:33 Predator 阅读(133) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Collections.ObjectModel; namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){varb=newObservableCollection<int>();b.CollectionChanged+=newSystem.Collections.Specialized.NotifyCollectionC 阅读全文
posted @ 2013-05-04 18:41 Predator 阅读(885) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms; namespaceWindowsFormsApplication2{publicpartialclassForm1:Form{privateList<string>listNames=newList<string>();privatein 阅读全文
posted @ 2013-05-04 18:15 Predator 阅读(1033) 评论(0) 推荐(0) 编辑
摘要: privatevoidbutton1_Click_1(objectsender,EventArgse){People<string>pString=newPeople<string>();pString.Show("ganquanfu");People<int>pInt=newPeople<int>();pInt.Show(200);}}classPeople<r>{publicvoidShow(r@object){MessageBox.Show(@object.ToString());}} 阅读全文
posted @ 2013-05-04 18:14 Predator 阅读(134) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms; namespaceWindowsFormsApplication2{publicpartialclassForm1:Form{privateList<string>listNames=newList<string>();publicFor 阅读全文
posted @ 2013-05-04 00:22 Predator 阅读(788) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms; namespaceWindowsFormsApplication2{publicpartialclassForm1:Form{privateList<string>listNames=newList<string>();publicFor 阅读全文
posted @ 2013-05-04 00:02 Predator 阅读(5045) 评论(0) 推荐(0) 编辑