摘要:
//用正则表达式完成替换计算 //检验 if(Common.GetMatchStr(this.sumitem,@"\w+([+\-*/]\w+)*").Length!=sumitem.Length) return -1; string op=Common.GetMatchStr... 阅读全文
摘要:
public static double Round(double d, int i) { if(d >=0) { d += 5 * Math.Pow(10, -(i + 1)); } else { d += -5 ... 阅读全文
摘要:
1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName 获取模块的完整路径。2. System.Environment.CurrentDirectory 获取和设置当前目录(该进程从中启动的目录)的完全限定目录。3. System.IO.Directory.GetCurrentDirec... 阅读全文