Visual C#.NET 2003 Unleashed

Visual C#.NET 2003 Unleashed

by Kevin Hoffman, Lonny Kruger

Microsoft Visual C# .NET 2003 Unleashed is a comprehensive reference and learning guide for the .NET Framework, using C# as the instructional language. You will be exposed to everything from low-level information on the Garbage Collector to advanced concepts like creating applications that use Enterprise Services, creating Web Services and even advanced Windows GUI


Microsoft Visual C# .NET 2003 Unleashed is a comprehensive reference and learning guide for the .NET Framework, using C# as the instructional language. You will be exposed to everything from low-level information on the Garbage Collector to advanced concepts like creating applications that use Enterprise Services, creating Web Services and even advanced Windows GUI. This book will become your definitive source of information on C# programming and the .NET framework. The book's lay-flat design makes it an ideal desk reference and the online searching and indexing through Safari make it the perfect tool for finding information quickly. Microsoft Visual C# .NET 2003 Unleashed will show you all the ways you can unleash your C# programming skills.

Product Details

Publication date:
Unleashed Series
Product dimensions:
7.42(w) x 9.16(h) x 2.00(d)

Read an Excerpt

IntroductionIntroductionWelcome to Visual C# .NET 2003

Today, people are living in a busy time. Gone are the days when it took two to three weeks to get a decision on a credit application for a car. We live in a time where we need what we want, and we want what we need, right now.

Wanting information right now is a common theme in today's environment. Having it right now is today's challenge. Whether it's while driving in the car, flying in an airplane, working, or while watching television at home, we all want it now. To solve this dilemma, IBM introduced the world to personal computers. For a time this was great, but personal computers were too expensive for the average person to have at home, so other companies introduced the portable computer. Don't let the term portable confuse you, this computer was everything but portable. The portable computer eventually became small enough to actually carry around and everything seemed right with the world, at least for a time. However, as time passed, so did the fad of starting up your laptop to find the phone number or address of the person you were trying to contact. So, along came mobile devices. With time, mobile devices such as personal digital assistants (PDAs), cellular phones, and cellular phones that thought they were PDAs became more advanced and brought us to the brink of having everything that we wanted at our fingertips...but not quite.

The great thing about the world is that everyone has his own ideas. Some ideas are great, and some...well, some are not so great. The problem with this is that most people have a bias toward their own ideas and think that their way is the rightway. This causes companies to develop technologies to handle tasks in their own image and makes communication between similar devices, made by different manufacturers, difficult if not impossible. Imagine this: You are tasked with gathering stock prices from different vendors of stock quotes. One source requires that you query its database with a proprietary protocol. Another has a file that is reproduced every minute and requires you to download it and parse the file for all the information that is needed. And finally, the third source does not have a published interface and therefore requires that you perform screen scraping to produce the information required. Without the presence of a standard method of accessing the information, retrieving the required data is, at the very least, complicated.Along Came .NET

Fortunately, our friends in Redmond thought about this problem for quite a while and came up with a solution they call .NET. Microsoft took the time necessary to come up with an end-to-end solution for such areas as cross-language interoperability, runtime management of system stability, web services that use a standard protocol such as SOAP (Simple Object Access Protocol), and seamless communication of distributed components, just to name a few.

In writing this book, we have first and foremost tried to give you the information necessary to understand the technology and be able to apply this knowledge to your future projects. Secondly, we want you to understand not only how it works, but also why it works. Too many programmers today are content with knowing that making a call to function A will cause the system to perform a certain task. That's fine, but if you don't know how function A performs the task, how are you going to know why or if it breaks function B when used in a certain context? If you don't know how it works, you won't know how you can make your code faster, more efficient, more scalable, and more reliable. This book will take you into the internals of the .NET Framework. You will learn not only how to use attributes in C#, you'll also learn what they actually do, so that if something breaks, you will have a little insight into the framework to help you quantify the issue and quickly create a solution.What's New in Visual Studio .NET

The first time you open Visual Studio .NET, you will notice that there have been many changes from previous versions. Visual Studio .NET and the .NET Framework will change the way you view and create software. Some of the differences between Visual Studio .NET and its predecessors like Visual C++ 6.0 include

  • Redesigned user interface: The Visual Studio .NET user interface is a combination of the best features found in the previous versions of Visual C++, Visual Basic, and Visual InterDev.

  • Advanced Help system: Help is literally at your fingertips. With the new Dynamic Help system, links to help documentation are context aware; that is, they are displayed based on what you are currently working on. Also, Microsoft Developers Network (MSDN) is now incorporated into the integrated development environment (IDE) without having to use an external help application.

  • Vastly improved debugger: By incorporating multiple languages into Visual Studio .NET, they support cross-language debugging. You now have the ability to easily step from Visual Basic .NET to Visual C# code.

  • Deployment support: Visual Studio .NET now contains the necessary toolset to deploy your finished application to its final destination. Using Microsoft Installer technology, you can create merge modules or entire installations within the Visual Studio .NET IDE.

  • Automatic code documentation: By using a combination of Extensible Markup Language (

  • .NET: .NET is a technology that can't really be summed up in one succinct phrase. Needless to say, .NET is more than just a framework. Included within the .NET umbrella are such things as Windows Forms, web services and, of course, the new Microsoft programming language, C#.

The changes that come with Visual Studio .NET are enormous. Trying to understand all of these changes can seem overwhelming. However, upon completion of this book, you will know how, and be able to use all the features of the .NET Framework. If you need to create several objects that must communicate with each other across process or even the Internet, you will apply what you learn in Chapter 39, "Remoting." If you need to create an object that can persist itself after the program has terminated, you will use the knowledge from Chapter 7, "File and Stream I/O and Object Persistence." In all, you will benefit from the beginning from informed design decisions.

© Copyright Pearson Education. All rights reserved.

Meet the Author

Kevin Hoffman started programming on a Commodore VIC-20 donated by his grandfather. Ever since then, he has been hopelessly addicted to programming. Instead of spending time outside, absorbing rays from that big yellow thing (he's not even sure what it's called), he spent most of his time as a kid and up through high school and college learning as many programming languages as he could get his hands on. At one time or another, he has written applications in ADA, Assembly, Scheme, LISP, Perl, Java, Python, Tcl/Tk, C, C#, Visual Basic .NET, C++, Pascal, Delphi, Visual Basic, VAX/VMS Pascal, BASIC, dozens of proprietary scripting languages, PL/SQL, and probably a few more that he couldn't remember. He's even written a few programs for OS/2 and Mac OS X.

He started out working for a company that produces scientific instruments. He wrote code that interfaced PCs with data logging and gathering tools as well as real-time data analysis programs. From there he moved on to working technical support for Unix systems, PCs, SQL databases, and client/server applications. After that he made the infamous jump to a dot-com, where he wrote an extensive amount of Visual Basic, VBScript, and ASP code. After an additional job working with another n-tier, COM-based ASP application, he moved to Houston, where he now endures the heat with his wife, dog, and two cats.

Lonny Kruger has more than 18 years of experience in developing C/C++, C#, Pascal, Delphi, Java, JavaScript, and Prolog programs, specializing in real-time applications and user interface design. Mr. Kruger has served as Systems Engineering Manager, Development Manager, Senior Architect, Project Manager, PrincipalInvestigator, and Senior Programmer for many projects including NASA's Next Grade Project, a tool for the rapid assembly and analysis of satellites, and was responsible for the development of hurricane tracking and prediction software using the CIA's world database. In addition to his programming experience, Mr. Kruger served six years in the United States Marine Corps, including a tour of duty in Saudi Arabia and Kuwait during the first Gulf War.

Customer Reviews

Average Review:

Post to your social network


Most Helpful Customer Reviews

See all customer reviews