C# 如何读取一行中的所有变量
2023-09-27 14:29:12 时间
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { char[] delimiterChars = { ' ', ',', '.', ':', '\t' }; string text = this.textBox1.Text; string[] words = text.Split(delimiterChars); foreach (String ss in words) { this.listBox1.Items.Add(ss); } } } }
相关文章
- C#.NET 大型通用信息化系统集成快速开发平台 4.1 版本 - 远程同步服务器大量基础数据到客户端
- C#方法的重写
- C#宣告一个变量
- 敏捷软件开发:原则、模式与实践(C#版·修订版)
- C#定义变量
- 【C#基础】C# 变量与常量的使用
- c# interface 的理解(工厂模式)简单实例
- C#进阶系列——一步一步封装自己的HtmlHelper组件:BootstrapHelper(三:附源码)
- C#中的字符串处理——找出最长数字子串
- c#多线程实现函数同步运行
- 【c#】关于c#中data控件的简单用法介绍
- Unity3d C#实现打包自动更新软件版本号且UGUI同步显示功能
- .NET(C#) Semaphore 和 CountdownEvent 的使用总结
- [原创]深入理解C# 3.x的新特性(3):从Delegate、Anonymous Method到Lambda Expression
- [.NET] 《Effective C#》快速笔记(一)- C# 语言习惯
- C#后端调用WebApi地址
- C# 7.0 使用下划线忽略使用的变量