摘要:
public class Document { public string Title { get; private set; } public string Content { get; private set; } public Document(string title, string content) { this.Title = title; this.Content = content; } }public class DocumentManager { private readonly Queue documentQueue=new Queue(); public void A. 阅读全文
摘要:
winform获取文件路径string str1 =Process.GetCurrentProcess().MainModule.FileName;//获得当前执行的exe的文件名。string str2=Environment.CurrentDirectory;//获取和设置当前目录的完全限定路径。string str3=Directory.GetCurrentDirectory();//获取应用程序的当前工作目录。string str4=AppDomain.CurrentDomain.BaseDirectory;//获取基目录,它由程序集冲突解决程序用来探测程序集。string str5= 阅读全文