随笔分类 -  C#

摘要:http://blogs.msdn.com/b/ericlippert/archive/2009/02/02/properties-vs-attributes.aspxHere is yet another question I got from a C# user recently:I have ... 阅读全文
posted @ 2015-07-28 15:20 ChuckLu 阅读(278) 评论(0) 推荐(0) 编辑
摘要:AttributeThe Attribute class associates predefined system information or user-defined custom information with a target element. A target element can b... 阅读全文
posted @ 2015-07-25 16:25 ChuckLu 阅读(274) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/29722838/system-timers-timer-steadily-increasing-the-interval需要在计时器每次运行后,修正计时器的间隔通过DateTime的Tick来处理 不过这个修正貌似有点不准p... 阅读全文
posted @ 2015-07-24 15:19 ChuckLu 阅读(1570) 评论(0) 推荐(1) 编辑
摘要:AttributesAttributes provide a powerful method of associating metadata, or declarative information, with code (assemblies, types, methods, properties,... 阅读全文
posted @ 2015-07-23 20:48 ChuckLu 阅读(267) 评论(0) 推荐(0) 编辑
摘要:Six important .NET concepts: Stack, heap, value types, reference types, boxing, and unboxing 阅读全文
posted @ 2015-07-17 00:38 ChuckLu 阅读(187) 评论(0) 推荐(0) 编辑
摘要:Application.CommonAppDataPath;win7的路径C:\ProgramData\CompanyName\ProductName\2.0.5.1[assembly: AssemblyCompany("******科技有限公司")][assembly: AssemblyProdu... 阅读全文
posted @ 2015-07-02 14:51 ChuckLu 阅读(711) 评论(0) 推荐(0) 编辑
摘要:public static void Method() { double a = 1.991; a = Math.Round(a); Console.WriteLine("a = {0}",a); ... 阅读全文
posted @ 2015-07-01 15:04 ChuckLu 阅读(344) 评论(0) 推荐(0) 编辑
摘要:http://www.codeproject.com/Articles/383749/How-does-it-work-in-Csharp-Part-Csharp-LINQ-in-d 阅读全文
posted @ 2015-06-24 14:07 ChuckLu 阅读(196) 评论(2) 推荐(0) 编辑
摘要:在.net4.0的时候推出的Task 执行结果 阅读全文
posted @ 2015-06-11 21:29 ChuckLu 阅读(312) 评论(0) 推荐(0) 编辑
摘要:What is the difference between C# and .NET?In addition to what Andrew said, it is worth noting that:.NET isn't just alibrary, but also aruntimefor exe... 阅读全文
posted @ 2015-06-09 11:09 ChuckLu 阅读(522) 评论(0) 推荐(0) 编辑
摘要:What's New in Visual C# .NET 2003[Visual Studio .NET 2003]What's New in Visual C# 2005What's New in Visual C# 2008What's New in Visual C# 2010What's N... 阅读全文
posted @ 2015-06-09 09:46 ChuckLu 阅读(292) 评论(0) 推荐(0) 编辑
摘要:http://www.codeproject.com/Articles/55710/Reflection-in-NET#_Toc252700542IntroductionIn this article, I have tried to cover all the topics from .NET R... 阅读全文
posted @ 2015-06-05 11:31 ChuckLu 阅读(283) 评论(0) 推荐(0) 编辑
摘要:https://msdn.microsoft.com/en-us/library/hh156499(v=vs.140).aspxThis page lists key feature names for each version of C# with descriptions of the new ... 阅读全文
posted @ 2015-06-01 14:31 ChuckLu 阅读(719) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Diagnostics;using Microsoft.Win32;namespace ChuckLu.Utility{ public class Cmd { private Cmd() { }... 阅读全文
posted @ 2015-05-27 17:47 ChuckLu 阅读(3635) 评论(3) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/4537945/what-is-the-difference-of-getting-type-by-using-gettype-and-typeofYou can only use typeof() when you know t... 阅读全文
posted @ 2015-05-27 14:35 ChuckLu 阅读(309) 评论(0) 推荐(0) 编辑
摘要:http://www.codeproject.com/Articles/584128/What-is-the-difference-between-equalsequals-and-EqWhen we create any object there are two parts to the obje... 阅读全文
posted @ 2015-05-27 14:09 ChuckLu 阅读(420) 评论(0) 推荐(0) 编辑
摘要:http://www.codeproject.com/Articles/630277/Generic-Data-Access-Layer-GDA-Part-Ihttp://www.codeproject.com/Articles/681565/Self-Synchronized-Data-Acces... 阅读全文
posted @ 2015-05-06 16:11 ChuckLu 阅读(182) 评论(0) 推荐(0) 编辑
摘要:http://www.dofactory.com/reference/csharp-coding-standards 阅读全文
posted @ 2015-05-05 20:44 ChuckLu 阅读(152) 评论(0) 推荐(0) 编辑
摘要:参考自Default visibility for C# classes and members (fields, methods, etc)?Classes and structs that are declared directly within a namespace (in other wo... 阅读全文
posted @ 2015-05-03 16:54 ChuckLu 阅读(2504) 评论(2) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/dotnet/api/system.timers.timer?view=netframework-4.7.2 Be aware that .NET includes four classes named Timer, each of 阅读全文
posted @ 2015-04-29 10:34 ChuckLu 阅读(282) 评论(0) 推荐(0) 编辑

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