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