Download Accelerated C♯ 2005 by Trey Nash PDF

By Trey Nash

Show description

Read or Download Accelerated C♯ 2005 PDF

Best nonfiction_12 books

Surface Modification Technologies XIII: Proceedings of a conference held in Singapore, 7-10 October 1999

The forty six papers awarded at this occasion conceal not easy fabrics, Lasers and floor Melting, Electrodeposition and review of converted Surfaces, Thermal Spray concepts, Nitride Coatings and overview of converted Surfaces.

Extra info for Accelerated C♯ 2005

Sample text

The key is to partition your code into cohesive units, or assemblies. There’s no point in creating multiassembly applications if code executed in common code paths is scattered across various assemblies, since you’ll lose the benefit of multiple assemblies. qxd 10 8/4/06 9:35 AM Page 10 CHAPTER 2 ■ C# AND THE CLR Naming Assemblies You can name assemblies in two main ways: • Strong (fully) named: This assembly has a name that consists of four parts: the short assembly name, a version number, a culture identifier in ISO format, and a hash token.

By using metadata, managed modules are self-describing. In the C++ world, to consume a library in your application, you would need two things: a static library or a DLL, and, normally, a header file. Since they exist as two separate entities that you must treat as a whole, it’s entirely possible that the header file and the library could get out of sync if you’re not careful. That could spell disaster. Managed modules, on the other hand, contain all necessary information inside the metadata that is contained in the module itself.

Cpp file. Also, metadata (generated transparently by the C# compiler) removes the need for the forward declarations and inclusions as required in C++. In fact, forward declarations don’t even exist in C#. Both Java and C++ programmers will find the static Main method familiar, except for the fact that its name begins with a capital letter. Every program requires an entry point, and in the case of C#, it is the static Main method. C++ programmers will notice some further differences. For example, the Main method is declared inside of a class (in this case, named EntryPoint).

Download PDF sample

Rated 4.67 of 5 – based on 45 votes