摘要:internal class CleanCode { private CultureInfo m_CurrentCulture; private CultureInfo m_CurrentUICulture; private int m_Priority; private string m_Name; //提供有意义的命名 ...
阅读全文
弹指一挥间好好做事,学习待人 (大数据分析/.NET/JAVA)技术交流QQ:860280456; .NET/JAVA技术交流群:192028174 |
03 2014 档案
摘要:internal class CleanCode { private CultureInfo m_CurrentCulture; private CultureInfo m_CurrentUICulture; private int m_Priority; private string m_Name; //提供有意义的命名 ...
阅读全文
摘要:class Person { /// /// 公有字段、属性 首字母大写 /// public string FirstName; public string LastName; public string Name { get { return strin...
阅读全文
摘要:#region Server /// /// 用于保存非对称加密(数字证书)的公钥 /// private string publicKey = string.Empty; /// /// 用于保存非对称加密(数字证书)的私钥 /// private str...
阅读全文
摘要:在2个项目中相互引用工程会提示 将导致循环依赖,如果相互引用的dll可以暂时规避,但日后改成引用工程则会仍报错,解决办法如下: using System;namespace ConsoleAppPreventCircularDependency{ class Program { static void Main(string[] args) { ...
阅读全文
摘要:using System;using System.IO;using System.Security.Cryptography;using System.Text;namespace ConsoleApp_PreventFileTampering{ class Program { static void Main(string[] args) { ...
阅读全文
摘要:using System;using System.IO;using System.Security.Cryptography;namespace ConsoleApp_SymmetricalEncryption{ class Program { static void Main(string[] args) { Symmetrical...
阅读全文
摘要:public sealed class Singleton { private static Singleton instance = null; static readonly object padlock = new object(); Singleton() { } public static Sing...
阅读全文
摘要:namespace ConsoleApp_UseExtendWays{ class Program { static void Main(string[] args) { Student s = new Student(); Console.WriteLine(s.GetSexString()); Console.WriteLine(s.GetAge()); Console.ReadKey(); } } public static clas...
阅读全文
摘要:#region 方式2-1 启动线程(带输入参数的) private void btn1_Click(object sender, EventArgs e) { MyObject obj = new MyObject(1, 2);//或者使用全局变量代替obj Thread thread = new Thre...
阅读全文
摘要:计算密集型工作,采用多线程。 IO密集型工作,采用异步机制。 /// /// 多线程 新开一个线程执行程序 /// private void btnMutilthread_Click(object sender, EventArgs e) { var thread = new Thread(DoSomething); ...
阅读全文
|