![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
Delta_老兵
这个作者很懒,什么都没留下…
展开
-
c#读取 txt文件存到数组里面
using System;using System.Collections.Generic;using System.Linq;using System.IO; namespace ConsoleApplication1{ class Program { static void Main(string[] args) { ...转载 2018-04-05 22:29:49 · 11353 阅读 · 0 评论 -
c# winform中如何从textbox读入每一行数据到数组?
方法1:string[] arr=new string[textBox1.Lines.Length];for(int i=0;i <textBox1.Lines.Length;i++) { arr[i]=textBox1.Lines[i];}方法2:List<string> lis= new List<string>;for(int i=0;i <...原创 2018-04-05 22:43:04 · 7702 阅读 · 1 评论 -
delegate.begininvoke 是新开了一个线程吗?
delegate.begininvoke是异步执行,一般用现有的线程池的线程,因此不一定会新开一个线程。原创 2018-04-06 11:06:01 · 880 阅读 · 0 评论 -
C# WINFORM判断程序是否运行,且只能运行一个实例
判断程序是否已经运行,使程序只能运行一个实例有很多方法,下面记录两种,方法1:线程互斥static class Program { private static System.Threading.Mutex mutex; /// <summary> /// 应用程序的主入口点。 /// </summary&...转载 2018-04-06 19:04:21 · 347 阅读 · 0 评论