摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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());}} 阅读全文
摘要:
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 阅读全文