随笔分类 - 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 ...
阅读全文
摘要:AttributeThe Attribute class associates predefined system information or user-defined custom information with a target element. A target element can b...
阅读全文
摘要:http://stackoverflow.com/questions/29722838/system-timers-timer-steadily-increasing-the-interval需要在计时器每次运行后,修正计时器的间隔通过DateTime的Tick来处理 不过这个修正貌似有点不准p...
阅读全文
摘要:AttributesAttributes provide a powerful method of associating metadata, or declarative information, with code (assemblies, types, methods, properties,...
阅读全文
摘要:Six important .NET concepts: Stack, heap, value types, reference types, boxing, and unboxing
阅读全文
摘要:Application.CommonAppDataPath;win7的路径C:\ProgramData\CompanyName\ProductName\2.0.5.1[assembly: AssemblyCompany("******科技有限公司")][assembly: AssemblyProdu...
阅读全文
摘要:public static void Method() { double a = 1.991; a = Math.Round(a); Console.WriteLine("a = {0}",a); ...
阅读全文
摘要:http://www.codeproject.com/Articles/383749/How-does-it-work-in-Csharp-Part-Csharp-LINQ-in-d
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:http://www.codeproject.com/Articles/55710/Reflection-in-NET#_Toc252700542IntroductionIn this article, I have tried to cover all the topics from .NET R...
阅读全文
摘要: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 ...
阅读全文
摘要:using System;using System.Diagnostics;using Microsoft.Win32;namespace ChuckLu.Utility{ public class Cmd { private Cmd() { }...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:http://www.codeproject.com/Articles/630277/Generic-Data-Access-Layer-GDA-Part-Ihttp://www.codeproject.com/Articles/681565/Self-Synchronized-Data-Acces...
阅读全文
摘要:http://www.dofactory.com/reference/csharp-coding-standards
阅读全文
摘要:参考自Default visibility for C# classes and members (fields, methods, etc)?Classes and structs that are declared directly within a namespace (in other wo...
阅读全文
摘要: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
阅读全文