![](https://img-blog.csdnimg.cn/20190927151132530.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
C#
无
Flay away
稀奇鬼怪
展开
-
用C#实现以下功能:产生一个int数组,长度为100,并向其中随机插入1-100,并且不能重复
namespace Wolfy.RandomDemo { class Program { static void Main(string[] args) { int[] result = GetRandom(100); for (int i = 0; i < result.Length; i++) { Console.WriteLine(result[原创 2021-06-30 12:06:52 · 1320 阅读 · 0 评论 -
编程遍历页面上所有TextBox 控件并给它赋值为空
foreach (System.Windows.Forms.Control control in this.Controls) { if (control is System.Windows.Forms.TextBox) { System.Windows.Forms.TextBox tb = (System.Windows.Forms.TextBox)control ; tb.Text = String.Empt原创 2021-06-18 00:55:35 · 670 阅读 · 0 评论