摘要:public static double Round(object data) { if (data == null || data == System.DBNull.Value) { return 0; ...
阅读全文
随笔分类 - C#编程基础
摘要:public class ConvertHelper where T : new() { private static Dictionary> ConvertInfo = new Dictionary>(); public static ObservableColl...
阅读全文
摘要:属性定义 [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public class ColumnNameAttribute : Attribute { ...
阅读全文
摘要:“正则表达式”描述在搜索文本正文时要匹配的一个或多个字符串。该表达式可用作一个将字符模式与要搜索的字符串相匹配的模板。正则表达式包括普通字符(例如,a 到 z 之间的字母)和特殊字符(称为“元字符”)。特殊字符下表包含了单字符元字符的列表以及它们在正则表达式中的行为。注意若要匹配这些特殊字符之一,必...
阅读全文
摘要:Lucene 全文搜索http://lucenenet.apache.org/Memcached 分布式缓存http://memcached.org/selenium UI自动化测试http://docs.seleniumhq.org/TestDriven.Net Unit Testhttp://www.testdriven.net/default.aspxMySql 数据库http://dev.mysql.com/dotPeek 反编译http://www.jetbrains.com/decompiler/jQueryhttp://jqueryui.com/dotTracePerforman
阅读全文
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Linq;usingSystem.Management;namespaceWMITest{classProgram{staticvoidMain(string[]args){varusBdriveNames=GetAllUsbDriveNames();CheckAllDriveType(usBdriveNames);Console.ReadLine();}privatestaticvoidCheckAllDriveType(List<string&
阅读全文
摘要:use XSD.exe in VS2010
from a xsd file to class
阅读全文
摘要:正确实现 IDisposable 接口
阅读全文
摘要:publicpartialclassForm2:Form{privatedelegatevoidSetText(stringname,stringage);SetTextsettext;Threadthread;publicForm2(){InitializeComponent();}privatevoidForm2_Load(objectsender,EventArgse){settext=newSetText(ST);label1.Text="start";}privatevoidbutton1_Click(objectsender,EventArgse){thread
阅读全文
摘要:锁实现互斥的访问,被用于确保在同一时刻只有一个线程可以进入特殊的代码片段
阅读全文
摘要:Control.Invoke和Control.BeginInvoke简述
阅读全文
摘要:ThreadPool.QueueUserWorkItem 方法 (WaitCallback)示例说明
阅读全文
摘要:简单的Excel2007 中VBA的应用,初学示例~
阅读全文