C# STEP BY STEP
Microsoft Visual Studio
C#.NET
Step By Step
1
SREEKANTH
C# STEP BY STEP
Introduction
Microsoft Visual C# is a powerful but simple language aimed primarily at developers creating applications by using the Microsoft .NET Framework. It inherits many of the best features of C++ and Microsoft Visual Basic, but few of the inconsistencies and anachronisms, resulting in a cleaner and more logical language. The advent of C# 2.0 has seen several important new features added to the language, including Generics,
Iterators, and anonymous methods. The development environment provided by
Microsoft Visual Studio 2005 makes these powerful features easy to use, and the many new wizards and enhancements included in Visual Studio 2005 can greatly improve your productivity as a developer.
The aim of this book is to teach you the fundamentals of programming with C# by using
Visual Studio 2005 and the .NET Framework. You will learn the features of the C# language, and then use them to build applications running on the Microsoft Windows operating system. By the time you complete this book, you will have a thorough understanding of C# and will have used it to build Windows Forms applications, access
Microsoft SQL Server databases, develop ASP.NET Web applications, and build and consume a Web service.
Part I
Introducing Microsoft Visual C# and Microsoft Visual Studio 2005
Chapter 1
Welcome to C#
After completing this chapter, you will be able to:
•
•
•
•
Use the Visual Studio 2005 programming environment.
Create a C# console application.
Use namespaces.
Create a C# Windows Forms application.
Microsoft Visual C# is Microsoft's powerful, component-oriented language. C# plays an important role in the architecture of the Microsoft .NET Framework, and some people have drawn comparisons to the role that C played in the development of UNIX. If you already know a language such as C, C++, or Java, you'll find the