08 2017 档案

摘要:1.请编程遍历页面上所有TextBox控件并给它赋值为string.Empty foreach (System.Windows.Forms.Control control in this.Controls){ if (control is System.Windows.Forms.TextBox) 阅读全文
posted @ 2017-08-07 19:35 Aaxuan 阅读(608) 评论(0) 推荐(0) 编辑
摘要:如何使得一个类型可以在foreach 语句中使用? 若要循环访问集合,集合必须满足特定的要求。 例如,在下面的 foreach 语句中: foreach (ItemType item in myCollection) myCollection 必须满足下列要求: 集合类型: ①.必须是 interf 阅读全文
posted @ 2017-08-06 08:39 Aaxuan 阅读(134) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示