随笔分类 -  C#常用方法

摘要:using System.Collections; public class TestStudent { public static void main(String args []) { //建立ArrayList对象 ArrayList students = new ArrayList(); / 阅读全文
posted @ 2017-11-17 15:23 汐云幻想 阅读(23441) 评论(0) 推荐(0)
摘要:本文实例讲述了C#判断字符串是否存在字母及字符串中字符的替换的方法。分享给大家供大家参考。具体实现方法如下: 首先要添加对命名空间“using System.Text.RegularExpressions;”的引用 下面以一个字符串为例: 代码如下: string ss = "aaZ31 dd2f3 阅读全文
posted @ 2017-11-14 11:48 汐云幻想 阅读(2545) 评论(0) 推荐(0)
摘要://获取当前进程的完整路径,包含文件名(进程名)。string str = this.GetType().Assembly.Location;result: X:\xxx\xxx\xxx.exe (.exe文件所在的目录+.exe文件名)//获取新的Process 组件并将其与当前活动的进程关联的主 阅读全文
posted @ 2017-11-13 17:20 汐云幻想 阅读(1681) 评论(0) 推荐(0)