04 2020 档案
摘要:static void StringToMoney() { Console.WriteLine(214748364700.ToString("C",CultureInfo.GetCultureInfo("en-us"))); }
阅读全文
摘要:1 using System.Dynamic; 2 public class Duck : DynamicObject 3 { 4 public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out o
阅读全文
摘要:using System.Runtime.CompilerServices; static void AttributesDemo([CallerMemberName] string memberName = null, [CallerFilePath] string filePath = null
阅读全文
摘要:static void WebClientDemo() { string str = null; using(WebClient wc=new WebClient()) { try { str = wc.DownloadString("http://www.albahari.com/nutshell
阅读全文
摘要:public partial class Form1 : Form { CancellationTokenSource cts = new CancellationTokenSource(); public Form1() { InitializeComponent(); } private voi
阅读全文