The Student's Essential Guide to . NET provides a clear and simple overview of Microsoft's . NET technologies. It is aimed at second and third year undergraduate students and postgraduate students on Computing or Computer Science courses who are required to look at a modern operating system, (Microsoft Windows 9x, Nt 2000 or XP) and to design and code simple or even not so simple examples. The approach is based upon the student's learning the technology of . NET through examples using the supported languages C#, VB and C++. The examples are based on fun, familiar games, and students are encouraged to review reference material to refine their skills on key aspects of the architecture. Review questions and worked examples enhance the learning process and the material is supported by the author's website, which contains extensive ancillary material. * Student-focused treatment with many examples and exercises, together with solutions* Integrates the use of . NET with the supported languages C#, VB and C++* Authors supporting website contains solutions, source code and other extras
Inhaltsverzeichnis
1;Cover;1 2;Contents;6 3;Preface;10 4;Acknowledgements;18 5;Chapter 1. An overview of .NET;20 5.1;Objective;20 5.2;The common structure;21 5.3;Welcome to the world of .NET ;22 5.4;What is .NET?;24 5.5;Does the .NET Framework kill the concepts of componentware?;26 5.6;What is .NET?;27 5.7;The web services;29 5.8;The .NET Framework;31 5.9;.NET componentware;32 5.10;The .NET class library;34 5.11;My Services;34 5.12;Enterprise services and servers;35 6;Chapter 2. The Common Language Runtime;38 6.1;Objective;38 6.2;Introduction;38 6.3;Hardware model;39 6.4;Run-time support libraries;41 6.5;Source code portability;41 6.6;Programming language syntax;42 6.7;Programmatic access to operating system services;42 6.8;The standard run-time support package;43 6.9;The traditional software development model;43 6.10;An alternative model;44 6.11;Virtual machines;44 6.12;The unambiguous general environment;45 6.13;The design of the .NET Framework VM;47 6.14;What is programming language syntax?;50 6.15;What does programming language semantics mean?;51 6.16;Data types;53 6.17;The Common Type System;55 6.18;The CTS basic type definition;56 6.19;Value types in the CTS;56 6.20;Reference types in the CTS;58 6.21;Reference type declarations in C#;59 6.22;Converting value types to reference types;59 6.23;Using the CLR environment;61 6.24;MSIL Microsoft Intermediate Language;63 6.25;Metadata;64 6.26;Managed code organisation into assemblies;65 6.27;The assembly structure;66 6.28;How does the CLR manage execution?;67 6.29;Creating the JIT compilation;68 7;Chapter 3. The framework class library and other support functionality;72 7.1;Objective;72 7.2;Other topics;73 7.3;Introduction;74 7.4;What about the other subordinate namespaces?;78 7.5;Garbage collection;79 7.6;The traditional memory map for an application;79 7.7;Automatic garbage collection;82 7.8;A strategy to avoid any asynchronous object destruction problems;84 7.9;.NET process management;85 7.10;File IO services;87 8;Chapter 4. Supporte
d programming languages;92 8.1;Objective;92 8.2;Introduction;93 8.3;The C# language;94 8.4;The C# data types;98 8.5;Classes;99 8.6;Interfaces;100 8.7;Structures;100 8.8;Delegates;101 8.9;Arrays;103 8.10;The C# language control structures;105 8.11;TheVB.NET language;107 8.12;The VB.NET data types;111 8.13;Classes in VB.NET;112 8.14;Interfaces in VB.NET;113 8.15;Structures in VB.NET;113 8.16;Delegates;114 8.17;Arrays;115 8.18;The VB.NET language control structures;116 8.19;Other features common to both the C# language and VB.NET;119 8.20;Namespaces;119 8.21;Structured exception handling;120 9;Chapter 5. Windows Forms;126 9.1;Objective;126 9.2;Introduction;127 9.3;Extract from a simple VB.NET form with a button and textbox;128 9.4;Parentchild architecture;132 9.5;Modal/non-modal;133 9.6;SDI/MDI applications;133 9.7;Window form controls;133 9.8;The examples;135 10;Chapter 6. NET components;170 10.1;Objective;170 10.2;Introduction;171 10.3;Setting up Visual Studio .NET;172 10.4;The examples;173 11;Chapter 7. Interoperability issues;206 11.1;Objective;206 11.2;Introduction;206 11.3;Win32 API interoperability;208 11.4;Using an existing system DLL;208 11.5;Exported functions from 'cards.dll';209 11.6;Creating the user control;212 11.7;The component implementation;214 11.8;Interoperability with COM objects;219 11.9;The COM example using the Media Player;223 11.10;Other interoperability issues ;226 12;Chapter 8. The role of XML;228 12.1;Objective;228 12.2;Introduction;229 12.3;How is this accomplished?;229 12.4;XML documents;230 12.5;Why is XML so important to us?;232 12.6;Namespaces;236 12.7;The DOM;239 12.8;Document Type Definitions;244 12.9;XML schemas;245 12.10;XML in the development world of Visual Studio .NET;247 12.11;XML serialisation;252 12.12;Benefits of XML serialisation;258 12.13;SOAP-based serialisation;259 13;Chapter 9. ADO.NET;262 13.1;Objective;262 13.2;Introduction;262 13.3;The multi-tiered design model;263 13.4;A background review of RDMS and SQL;264 13.5;Th
e ADO.NET model;267 13.6;A simple example;267 13.7;Reading and writing XML Files;271 13.8;Extending the Previous Example;272 13.9;Data providershow we link to different RDMSs;273 13.10;Datasets;275 13.11;Translating datasets to XML;277 13.12;Dataset and XML synchronisation;280 14;Chapter 10. Networking, web forms and ASP.NET;282 14.1;Objective;282 14.2;Introduction;282 14.3;Sockets;283 14.4;The mechanisms to establishing a simple socket connection;284 14.5;Web pages;292 14.6;Web applications and ASP.NET;298 14.7;The typical web application architecture;302 14.8;The example;303 15;Chapter 11.Web services;318 15.1;Objective;318 15.2;Introduction;319 15.3;Is it really that simple?;323 15.4;Linkage problems;324 15.5;Early binding;324 15.6;Late binding;325 15.7;Example;332 15.8;Self-description for web services;333 15.9;Using VS.NET to create the proxy;335 15.10;Windows client design;338 15.11;Web client design;339 16;Chapter 12. The case study;344 16.1;Objective;344 16.2;Introduction;345 16.3;The problem;346 17;Appendix A;368 18;Appendix B;378 19;Index;380