
C# WinForm
wszhoho
ai修炼中
展开
-
判断字符串是否全为数字类型
一通用函数,可以判断字符串是否是数值类型:private bool IsNumberic(string str) { if (str == null || str.Length == 0) return false; System.Text.ASCIIEncoding ascii = new System.Text.ASCIIEncoding(); byte[] by原创 2007-06-06 13:29:00 · 1025 阅读 · 0 评论 -
汉字与区位码之间的互相转换
private string Char2Unicode(string str) { string code = ""; for (int i = 0; i { byte[] mybyte = Encoding.Unicode.GetBytes(str.Substring(i, 1));/原创 2007-06-12 23:48:00 · 1490 阅读 · 0 评论 -
C#多线程编程简单实例
简单实例,复杂的演变一下,呵呵。using System;using System.Threading;namespace ConsoleApplication1{ /// /// Class1 的摘要说明。 /// class Class1 { /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] args原创 2008-01-17 11:59:00 · 10455 阅读 · 5 评论