CLR.via.Csharp.3rd Chapter 8: Methods
摘要:Instance Constructors and Classes (Reference Types) Constructor methods are always called .ctor (for constructor) in a method definition metadata table . When constructing a reference type object, the...
阅读全文
CLR.via.Csharp.3rd Chapter 7: Constants and Fields
摘要:Constants A constant is a symbol that has a never-changing value . The compiler saves the constant’s value in the assembly’s metadata at compile time. You can define a constant only for types that yo...
阅读全文
CLR.via.Csharp.3rd Chapter 6: Type and Member Basics
摘要:The Different Kinds of Type Members A type can define zero or more of the following kinds of members: Constants Fields Instance constructors Type constructors Methods Operator overloads: &...
阅读全文
CLR.via.Csharp.3rd Chapter 5: Primitive, Reference, and Value Types
摘要:Programming Language Primitive Types Any data types the compiler directly supports are called primitive types . I prefer to use the FCL type names(System.Int64) and completely avoid the primitive ty...
阅读全文
CLR.via.Csharp.3rd Chapter 4: Type Fundamentals
摘要:All Types Are Derived from System.Object Every object on the heap requires some additional members—called the type object pointer and the sync block index—used by the CLR to manage the object . When ...
阅读全文
CLR.via.Csharp.3rd Chapter 3: Shared Assemblies and Strongly Named Assemblies
摘要:Two Kinds of Assemblies, Two Kinds of Deployment A strongly named assembly is signed with a publisher’s public/private key pair that uniquely identifies the assembly’s publisher . This key pair allow...
阅读全文
CLR.via.Csharp.3rd Chapter 2: Building, Packaging, Deploying, and Administering Applications and Types
摘要:.NET Framework Deployment goals Goals: DLL hell . installation complexities . security. As you’ll see, the .NET Framework enables users to control what gets installed and what runs, and in gene...
阅读全文
CLR.via.Csharp.3rd Chapter 1: The CLR’s Execution Model
摘要:Compiling Source Code into Managed Modules Decide which programming language to use Microsoft has created several language compilers that target the runtime: C++/CLI, C# , Visual Basic, F# , ... and ...
阅读全文