
C#
风之飘渺
这个作者很懒,什么都没留下…
展开
-
c#获取应用程序目录
string str1 =Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe的文件名。 string str2=Environment.CurrentDirectory;//获取和设置当前目录(即该进程从中启动的目录)的完全限定路径。 //备注 按照定义,如果该进程在本地或网络驱动器的根目录中启动,则此属性的值为驱动器转载 2013-01-15 08:52:07 · 364 阅读 · 0 评论 -
C#拆分字符串工具类
习惯了JAVA里的字符串拆分,写C#还真不习惯。所以单独写了一个工作类,方便以后使用。 using System; using System.Collections.Generic; using System.Text; namespace com.saper.util { class StringUtil { /**原创 2013-01-22 11:51:07 · 694 阅读 · 1 评论