摘要: State management is the process by which you maintain state and page information over multiple requests for the same or different pages. As is true for any HTTP-based technology, Web Forms pages are stateless, which means that they do not automatically indicate whether the requests in a sequence are 阅读全文
posted @ 2011-08-17 11:56 lochker 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Lazy Evaluation behaves in a surprising way in LINQ, look at an example. First, consider the following Boolean function that as a side-effect outputs the doctor's initials:public static bool dump(Doctor d){ System.Console.WriteLine(d.Initials); return true;}Now use dump in a simple query that wi 阅读全文
posted @ 2011-08-05 09:54 lochker 阅读(404) 评论(0) 推荐(0) 编辑
摘要: varType "var" is commonly used in C#, but do not confuse var with the concept of a VB variant (it's not), nor with the concept of var in dynamic languages like JavaScript (where var really means object).In these languages the variable's type can change, and so type checking is perf 阅读全文
posted @ 2011-08-05 07:55 lochker 阅读(283) 评论(0) 推荐(0) 编辑
摘要: Definition:Hungarian Notation (HN) is a naming convention invented by Charles Simonyi from Microsoft. In HN one writes things like m_nSize, hwndParent and lpszFile.Advantages:Hungarian notation (or a variation of this) has its place in Languages when referring to data that really DOES have a particu 阅读全文
posted @ 2011-08-04 08:57 lochker 阅读(305) 评论(0) 推荐(0) 编辑
摘要: Quote From MSDN:Most queries in the introductory LINQ documentation are written as query expressions by using the declarative query syntax introduced in C# 3.0. However, the .NET common language runtime (CLR) has no notion of query syntax in itself. Therefore, at compile time, query expressions are 阅读全文
posted @ 2011-08-03 08:48 lochker 阅读(291) 评论(0) 推荐(0) 编辑
摘要: Namespace And Inheritances RelationsNamespace: System.Collections [ComVisibleAttribute(true)] [GuidAttribute("496B0ABE-CDEE-11d3-88E8-00902754C43A")] public interface IEnumerableNamespace: System.Collections.Generic public interface IEnumerable : IEnumerableNamespace: System.Linq public in 阅读全文
posted @ 2011-08-03 07:26 lochker 阅读(359) 评论(0) 推荐(1) 编辑
摘要: C# defines the following character escape sequences:\'- single quote, needed for character literals\"- double quote, needed for string literals\\- backslash- Unicode character 0\a- Alert (character 7)\b- Backspace (character8)\f- Form feed (character 12)\n- New line (character 10)\r- Carria 阅读全文
posted @ 2011-08-03 06:56 lochker 阅读(300) 评论(0) 推荐(0) 编辑
摘要: The ability to query relational stores other than the Microsoft SQL Server family of products.What is LINQ?Microsoft’s new Language Integrated Query (LINQ)is a set of extensions to the .NET Framework ... 阅读全文
posted @ 2011-08-03 06:51 lochker 阅读(795) 评论(0) 推荐(0) 编辑