摘要: 1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName-获取模块的完整路径。2.System.Environment.CurrentDirectory-获取和设置当前目录(该进程从中启动的目录)的完全限定目录。3.System.IO.Directory.GetCurrentDirectory()-获取应用程序的当前工作目录。这个不一定是程序从中启动的目录啊,4.System.AppDomain.CurrentDomain.BaseDirectory-获取程序的基目录。5.System.AppDomain.Cur 阅读全文
posted @ 2012-02-08 13:27 完美的爱 阅读(9074) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace calendar{ class ChineseCalendar { #region ChineseCalendarException /// <summary> /// 中国日历异常处理 /// </summary> public class ChineseCalendarException : System.Exception { public ChineseCalendarException(string msg) : 阅读全文
posted @ 2012-02-08 13:12 完美的爱 阅读(4076) 评论(5) 推荐(1) 编辑