弹指一挥间

好好做事,学习待人 (大数据分析/.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; //提供有意义的命名 ... 阅读全文
posted @ 2014-03-29 21:33 v.e.n.u.s 阅读(389) 评论(0) 推荐(0) 编辑

摘要:class Person { /// /// 公有字段、属性 首字母大写 /// public string FirstName; public string LastName; public string Name { get { return strin... 阅读全文
posted @ 2014-03-28 21:29 v.e.n.u.s 阅读(347) 评论(0) 推荐(0) 编辑

摘要:#region Server /// /// 用于保存非对称加密(数字证书)的公钥 /// private string publicKey = string.Empty; /// /// 用于保存非对称加密(数字证书)的私钥 /// private str... 阅读全文
posted @ 2014-03-23 23:49 v.e.n.u.s 阅读(1171) 评论(0) 推荐(0) 编辑

摘要:在2个项目中相互引用工程会提示 将导致循环依赖,如果相互引用的dll可以暂时规避,但日后改成引用工程则会仍报错,解决办法如下: using System;namespace ConsoleAppPreventCircularDependency{ class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2014-03-23 10:33 v.e.n.u.s 阅读(2996) 评论(4) 推荐(0) 编辑

摘要:using System;using System.IO;using System.Security.Cryptography;using System.Text;namespace ConsoleApp_PreventFileTampering{ class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2014-03-23 09:08 v.e.n.u.s 阅读(4284) 评论(1) 推荐(0) 编辑

摘要:using System;using System.IO;using System.Security.Cryptography;namespace ConsoleApp_SymmetricalEncryption{ class Program { static void Main(string[] args) { Symmetrical... 阅读全文
posted @ 2014-03-22 20:22 v.e.n.u.s 阅读(1473) 评论(0) 推荐(0) 编辑

摘要:public sealed class Singleton { private static Singleton instance = null; static readonly object padlock = new object(); Singleton() { } public static Sing... 阅读全文
posted @ 2014-03-21 22:12 v.e.n.u.s 阅读(409) 评论(0) 推荐(0) 编辑

摘要: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... 阅读全文
posted @ 2014-03-18 22:43 v.e.n.u.s 阅读(755) 评论(0) 推荐(0) 编辑

摘要:#region 方式2-1 启动线程(带输入参数的) private void btn1_Click(object sender, EventArgs e) { MyObject obj = new MyObject(1, 2);//或者使用全局变量代替obj Thread thread = new Thre... 阅读全文
posted @ 2014-03-05 23:34 v.e.n.u.s 阅读(1316) 评论(1) 推荐(0) 编辑

摘要:计算密集型工作,采用多线程。 IO密集型工作,采用异步机制。 /// /// 多线程 新开一个线程执行程序 /// private void btnMutilthread_Click(object sender, EventArgs e) { var thread = new Thread(DoSomething); ... 阅读全文
posted @ 2014-03-04 00:12 v.e.n.u.s 阅读(338) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示