文章分类 -  C#

摘要:The existing class that will serve as the basis for the new class is termed a base or parent class.那些用于服务新的的已经存在的类被称为基类或者父类。The extending classes are ... 阅读全文
posted @ 2015-02-15 10:47 海川0 阅读(135) 评论(0) 推荐(0)
摘要:Simply put, the role of System.ValueType is to ensure that the derived type (e.g., any structure) is allocated on the stack, rather than the garbage-c... 阅读全文
posted @ 2015-02-13 16:19 海川0 阅读(75) 评论(0) 推荐(0)
摘要:Be aware that all C# keywords are lowercase (e.g., public, lock, class, dynamic), while namespaces, types, and member names begin (by convention) with... 阅读全文
posted @ 2015-02-09 17:45 海川0 阅读(59) 评论(0) 推荐(0)
摘要:Simply put, a root is a storage location containing a reference to an object on the managed heap.During a garbage collection process, the runtime will... 阅读全文
posted @ 2015-02-09 16:42 海川0 阅读(71) 评论(0) 推荐(0)
摘要:Allocate a class instance onto the managed heap using the new keyword and forget about it.在使用new关键字托管堆上分配一个类的实例,并且忘掉他。Once instantiated, the garbage c... 阅读全文
posted @ 2015-02-09 16:14 海川0 阅读(58) 评论(0) 推荐(0)
摘要:To help optimize the process, each object on the heap is assigned to a specific “generation.” The idea behind generations is simple: the longer an obj... 阅读全文
posted @ 2015-02-09 11:14 海川0 阅读(98) 评论(0) 推荐(0)
摘要:10-05 Understanding C# Events理解C#事件Delegates are fairly interesting constructs(柯1)(建造,构筑) in that they enable objects in memory to engage in a two-way... 阅读全文
posted @ 2015-02-05 10:51 海川0 阅读(97) 评论(0) 推荐(0)
摘要:The Problems of Nongeneric Collections非泛型集合的问题The first issue is that using the System.Collections and System.Collections.Specialized classes can resu... 阅读全文
posted @ 2015-02-04 16:19 海川0 阅读(73) 评论(0) 推荐(0)
摘要:When you define extension methods, the first restriction is that they must be defined within a static class (see Chapter 5) and, therefore, each exte... 阅读全文
posted @ 2015-02-02 14:20 海川0 阅读(80) 评论(0) 推荐(0)
摘要:Can be used as ‘return value’.Can’t be used as ‘return value’.sdfsdfsdfsdfThis keyword allows you todefine a local variable without explicitlyspecifyi... 阅读全文
posted @ 2015-02-02 11:05 海川0 阅读(57) 评论(0) 推荐(0)