Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 385 trang
THÔNG TIN TÀI LIỆU
Cấu trúc
Students' Essential Guide to .NET
Copyright Page
Contents
Preface
Acknowledgements
Chapter 1. An overview of .NET
Objective
The common structure
Welcome to the world of .NET
What is .NET?
Does the .NET Framework kill the concepts of componentware?
What is .NET?
The web services
The .NET Framework
.NET componentware
The .NET class library
My Services
Enterprise services and servers
Chapter 2. The Common Language Runtime
Objective
Introduction
Hardware model
Run-time support libraries
Source code portability
Programming language syntax
Programmatic access to operating system services
The standard run-time support package
The traditional software development model
An alternative model
Virtual machines
The unambiguous general environment
The design of the .NET Framework VM
What is programming language syntax?
What does programming language semantics mean?
Data types
The Common Type System
The CTS basic type definition
Value types in the CTS
Reference types in the CTS
Reference type declarations in C#
Converting value types to reference types
Using the CLR environment
MSIL Microsoft Intermediate Language
Metadata
Managed code organisation into assemblies
The assembly structure
How does the CLR manage execution?
Creating the JIT compilation
Chapter 3. The framework class library and other support functionality
Objective
Other topics
Introduction
What about the other subordinate namespaces?
Garbage collection
The traditional memory map for an application
Automatic garbage collection
A strategy to avoid any asynchronous object destruction problems
.NET process management
File IO services
Chapter 4. Supported programming languages
Objective
Introduction
The C# language
The C# data types
Classes
Interfaces
Structures
Delegates
Arrays
The C# language control structures
TheVB.NET language
The VB.NET data types
Classes in VB.NET
Interfaces in VB.NET
Structures in VB.NET
Delegates
Arrays
The VB.NET language control structures
Other features common to both the C# language and VB.NET
Namespaces
Structured exception handling
Chapter 5. Windows Forms
Objective
Introduction
Extract from a simple VB.NET form with a button and textbox
Parent–child architecture
Modal/non-modal
SDI/MDI applications
Window form controls
The examples
Chapter 6. NET components
Objective
Introduction
Setting up Visual Studio .NET
The examples
Chapter 7. Interoperability issues
Objective
Introduction
Win32 API interoperability
Using an existing system DLL
Exported functions from 'cards.dll'
Creating the user control
The component implementation
Interoperability with COM objects
The COM example using the Media Player
Other interoperability issues
Chapter 8. The role of XML
Objective
Introduction
How is this accomplished?
XML documents
Why is XML so important to us?
Namespaces
The DOM
Document Type Definitions
XML schemas
XML in the development world of Visual Studio .NET
XML serialisation
Benefits of XML serialisation
SOAP-based serialisation
Chapter 9. ADO.NET
Objective
Introduction
The multi-tiered design model
A background review of RDMS and SQL
The ADO.NET model
A simple example
Reading and writing XML Files
Extending the Previous Example
Data providers–how we link to different RDMSs
Datasets
Translating datasets to XML
Dataset and XML synchronisation
Chapter 10. Networking, web forms and ASP.NET
Objective
Introduction
Sockets
The mechanisms to establishing a simple socket connection
Web pages
Web applications and ASP.NET
The typical web application architecture
The example
Chapter 11.Web services
Objective
Introduction
Is it really that simple?
Linkage problems
Early binding
Late binding
Example
Self-description for web services
Using VS.NET to create the proxy
Windows client design
Web client design
Chapter 12. The case study
Objective
Introduction
The problem
Appendix A
Appendix B
Index
Nội dung
[...]... this book is to look at the derivation of these two topics not at the detail of what functionality is directly available now and how future releases may enhance specific class libraries etc Students' EssentialGuidetoNET Support material The source files for the examples along with other reference material for this book are available at the support website: Nil http://essentialguideto .net The author... to another is very difficult to achieve and the scalability of the solutions produced is very limited The most obvious omission is the Java Virtual Machine; we will in fact be looking at the JVM in Chapter 2 Students' EssentialGuidetoNET Clients bl[ / HTT~[~ [ ~.NiT ;ramework~[ Visual'~tu~:o .NET/ Windows Your internal Web FlgUFe 1.1 Applications WWW NET Enterprise A posible answer to "What is NET? "... any Students'EssentialGuidetoNET detail My Services is a group of NET technologies created using web services In essence it is a mechanism that allows users to store as much, or as little, of their private or personnel details on a web server Access to this information being controlled by security protocols, the Microsoft implementation most commonly seen being ' .NET Passport' used to authenticate... consideration This appears to be the path that NET is following Welcome to the world of NET What you are about to embark on is a learning experience like no other Unlike many books with NET in the title we are not simply going to look at the details of programming within the NET environment The overall objective of this book is to answer the question: As a s t u d e n t what do I n e e d to u n d e r s t a.. .Students' Essential Guideto NET Carrying this analogy forward therefore, a computer science student studying Visual Basic programming in the NET environment should be aware of the constraints that may be imposed by the NET architecture The detail presented in specialist textbooks means that they normally run to greater than 5oo pages with a price that is in proportion to size In which case students. .. each one leading to the more detailed investigation of specific topics in subsequent chapters VB C++ C# JScript Common Language Specification ASP .NET: Web Services and Web Forms Windows Forms ~ o "13 ~0 ADO .NET: Data and XML Base Classes Common Language Runtime Figure 1.2 The N E T components ~ Students' Essential Guideto NET Table 1.I The component parts o f N E T Item Contains The NET Framework The... probably the major contributory factor to cost reduction on large system development The technology of the COM model revolutionised the development of component functionality but as indicated it does have major drawbacks The overall integration of this componentware technology into the Windows environment was Students' Essential Guideto NET incomplete, it required additional effort to fully integrate the... NET class library contains far more than these highlighted items In Chapter 3 we will look more extensively at some of the classes available, to identify the overall organisation and structure of the library My Services Another import technology within the NET architecture is the My Services technology It is far beyond the scope of this essential guideto NET to look at the NET My Services in any Students' ... corporate or even a home network can be linked to non-PC devices such as palm tops, microwave ovens and even refrigerators This interconnection usually comes at effectively no additional cost, as the extra Students' Essential Guideto NET hardware components in the specialist devices are usually available, this is because the integration cost of the hardware has reached the bottom of the cost/benefit... point for further study material on many of the topics Required background This book could be used to complement a level one programming module, you may find it useful to have some background in the framework when learning to program for the first time, but it is not directly aimed at level one studentsTo be able to study topics associated with the NET architecture it is assumed that a student will . alt="" Students Essential Guide to .NET This Page Intentionally Left Blank Students& apos; Essential Guide to .NET Tony Grimer ELSEVIER BUTTERWORTH HEINEMANN AMSTERDAM 9 BOSTON ~ HEIDELBERG. m Introductory programming either procedural or object oriented I! Protocols and networking. To look at the more advanced topics at the end of the book related to ADO .NET, ASRNET and web. considerations related to the .NET frame- work are also discussed. Students& apos; Essential Guide to .NET ~2i Some suggestions for self-assessment extensions the reader could make to the example are