摘要:
static void BinaryWriterReaderDemo() { using (FileStream fs = new FileStream("fs.txt", FileMode.Create)) { SaveData(fs); } using(FileStream fs=new Fil 阅读全文
摘要:
static void FileStreamWriterReadDemo() { string textFile = "fs.txt"; using (FileStream fs = new FileStream(textFile, FileMode.Create)) { using (Stream 阅读全文
摘要:
using System.Globalization; static void GetCultureInfos() { var cultures = CultureInfo.GetCultures(CultureTypes.AllCultures).OrderBy(x => x.Name).ToLi 阅读全文
摘要:
Named pipe (more flexible)Allows two-way communication between arbitrary processes on the same computer or different computers across a network.A pipe 阅读全文
摘要:
static void FileStreamSDemo() { DateTime dtNow = DateTime.Now; DateTime dtEnd = dtNow.AddSeconds(60); using(FileStream fs=new FileStream("FileStream.t 阅读全文
摘要:
static void Main(string[] args) { A(); Console.ReadLine(); } static void A() { B(); } static void B() { C(); } static void C() { StackTrace s = new St 阅读全文
DebuggerStepThrough requests that the debugger step through a function without any user interaction.
摘要:
static void Main(string[] args) { DoWorkProxy(); Console.ReadLine(); } [DebuggerStepThrough,DebuggerHidden] static void DoWorkProxy() { PrintTime(); } 阅读全文
摘要:
static void ListTimeZoneInfos() { StringBuilder timeBuilder = new StringBuilder(); var timeZoneInfoList = TimeZoneInfo.GetSystemTimeZones().OrderBy(x= 阅读全文
摘要:
string inputStr = "'some string'"; string outputStr = inputStr.Trim(new char[]{(char)39}); 阅读全文
摘要:
static void MockHeartBeatViaWhileTrue() { while (true) { Console.WriteLine($"Now is {DateTime.Now.ToString("yyyyMMddHHmmssffff")}"); Thread.Sleep(2000 阅读全文