Microsoft .NET for Programmers
Fergal Grimes
  • December 2002
  • ISBN 9781930110199
  • 386 pages

Packed full of practical examples, Microsoft.NET for Programmers presents a case study which takes you through the design of an application "engine" and its implementation as a .NET assembly. You'll reuse the engine to create different versions of the application using Windows Forms, Remoting, Web Services, Windows Services, COM, MSMQ, ASP.NET, ADO.NET, and the Mobile Internet Toolkit. You'll also learn about fundamental .NET concepts such as types and assemblies and develop a simple language compiler which can emit a .NET executable.

Also included is an appendix containing a comprehensive introduction to the C# programming language.

Table of Contents detailed table of contents

preface

acknowledgments

author online

about the cover illustration

1. Introduction

1.1. Developing for the .NET platform

1.2. A first .NET program

1.3. The platform vs. the programming language

1.4. Exploring the . NET Framework class library

1.5. Putting .NET to work

1.6. Summary

2. Understanding types and assemblies

2.1. Introducing types

2.2. Value vs. reference types

2.3. Exploring System.Object

2.4. Understanding finalization

2.5. Introducing assemblies

2.6. Private vs. shared assemblies

2.7. Downloading assemblies

2.8. Programming in IL

2.9. Types, assemblies, and reflection

2.10. Building a simple compiler

2.11. Summary

3. Case study: a video poker machine

3.1. Playing video poker

3.2. The Poker.Card class

3.3. The Poker.Hand class

3.4. SimPok: a simple poker game

3.5. ComPok: a COM-based poker game

3.6. IEPok: an Internet Explorer poker game

3.7. Designing a complete game

3.8. Summary

4. Working with ADO.NET and databases

4.1. The ADO.NET namespaces

4.2. The ADO.NET DataSet

4.3. DataSets and XML

4.4. Updating the database using a DataSet

4.5. Updating the database directly

4.6. The DataReader

4.7. The Poker.Bank class

4.8. Using XML serialization to create a report

4.9. The Poker.Machine class

4.10. The Poker.Bet class

4.11. Building the poker DLL

4.12. ConPok: 3-tier client/server poker

4.13. Summary

5. Developing remote services

5.1. Introduction to remoting

5.2. Implementing server-activated remote objects

5.3. Configuring remoting

5.4. Implementing client-activated remote objects

5.5. Client activation and leasing

5.6. Handling remote events

5.7. Hosting objects in Internet Information Server

5.8. RemPok: a remote poker game

5.9. SvcPok: a remote poker game as a Windows service

5.10. QuePok: a message queue-based poker game

5.11. Summary

6. Developing XML Web services

6.1. Introduction to XML Web services

6.2. Creating a first Web service

6.3. Creating an HTTP GET client

6.4. Using WSDL to describe a Web service

6.5. Coding a SOAP client

6.6. The WebMailService example

6.7. Managing service state

6.8. Enabling Web service discovery

6.9. Using UDDI to advertise a Web service

6.10. WSPok: the Web service-based poker game

6.11. Summary

7. Creating the Windows Forms user interface

7.1. Beginning Windows Forms development

7.2. Understanding the Windows Forms programming model

7.3. WinPok: the Windows Forms-based poker game

7.4. Creating Windows Forms applications using Visual Studio .NET

7.5. Overriding WndProc

7.6. Summary

8. Creating the Web Forms user interface

8.1. Comparing ASP.NET to ASP

8.2. The System.Web.UI.Page class

8.3. Working with Web Forms and server controls

8.4. Creating user controls

8.5. Validating user input

8.6. Configuring and customizing ASP.NET applications

8.7. Tracing ASP.NET applications

8.8. Managing application and session state

8.9. Creating Web Forms using Visual Studio .NET

8.10. Manually creating code-behind Web Forms

8.11. WebPok: the Web Forms-based poker machine

8.12. MobPok: the mobile Internet-based poker machine

8.13. Summary

Appendix A: Introduction to C#

Appendix B: The Poker.dll class listings

Appendix C: The WinPok.cs listing

index

About the reader

Written for intermediate and advanced programmers, this book builds on your existing knowledge to teach you exactly what you need to know to develop .NET applications.

About the author

Fergal Grimes is a freelance programmer and systems designer. He has 15 years' experience developing diverse applications for embedded, mainframe, client/server, and Web-based platforms, and is a Microsoft Certified Solution Developer and a Sun Certified Java Developer. He lives in Hollywood, California.


Buy
eBook $27.99 PDF only

FREE domestic shipping on three or more pBooks