文章分类 - 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 ...
阅读全文
摘要: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...
阅读全文
摘要:Be aware that all C# keywords are lowercase (e.g., public, lock, class, dynamic), while namespaces, types, and member names begin (by convention) with...
阅读全文
摘要: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...
阅读全文
摘要:Allocate a class instance onto the managed heap using the new keyword and forget about it.在使用new关键字托管堆上分配一个类的实例,并且忘掉他。Once instantiated, the garbage c...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:The Problems of Nongeneric Collections非泛型集合的问题The first issue is that using the System.Collections and System.Collections.Specialized classes can resu...
阅读全文
摘要: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...
阅读全文
摘要:Can be used as ‘return value’.Can’t be used as ‘return value’.sdfsdfsdfsdfThis keyword allows you todefine a local variable without explicitlyspecifyi...
阅读全文

浙公网安备 33010602011771号