全文预览

C# Linq 集合操作

上传者:叶子黄了 |  格式:pdf  |  页数:82 |  大小:4441KB

文档介绍
e,s.ck.ToStringO);\r}\r}\r)\rpublicclassT1\r(\rpublicstringName;\rpublicintValue;\r)\rpublicclassT2\r(\rpublicstringID;EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rpublicstringbak;\r}\rDataSourcek§¨©\rpublicclassaa\r(\rpublicstringa\r{get;set;}\rpublicstringb\r{get;set;}\r)\rwinform\rList<aa>Is=newList<aa>{newaa(a="a",b=T},newaa{a="b",b="2"}};\rdataGridViewl.DataSource=Is;mk§ª«¬­hq®¯\r//±c²³´µ¬®¯\rcomboBoxl.DataSource=Is;\rcomboBoxl.DisplayMember="b";EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rprotectedvoidButtonlClick(objectsender,EventArgse)\r(\rList<aa>Is=newList<aa>{newaa(a="a",b=T},newaa{a.="b",b="2"}};\rthis.GridViewl.DataSource=Is;\rDropDownList1.DataSource=Is;\rDropDownListl.DataTextField="b";\rDropDownListl.DataValueField="a”;\rthis.DataBindO;\r}

收藏

分享

举报
下载此文档