If we were to describe the C# language and its associated environment, the .NET Framework, as the most important new technology for developers for many ~ ears, we would not be exaggerating..NET is designed to provide a new environment within which you can develep almost any application to run on Windows, while C# is a new programming language that has been designed specifically to work with .NET.
In this book, we introduce all the key concepts of the C# language and the .NET Framework. As wel as full coverage of C# syntax, there are examples of building all types of applications using C# - Windows applications and Windows services, web applications and web services with ASR~NET, and Windows and web controls. There is also fu] discussion of the most common .NET class libraries, such as data access using ADO. NET, and accessing Active Directory using the DirectoryServices classes.
Who is this book for?
This book is aimed at ex perienced developers - probably from a VB. C+ +. or Java background - but no previous experience of C# or .NET programming is assumed. This book will provide the ideal introduction to writing C# programs on the .NET Framework, for developers working at the leading edge.
What does this book cover?
All the features of the C# language
Object-oriented programming in C#
Windows applications and Windows services
Writing web pages and web services with ASRNET
.NET Assemblies
Accessing your data with ADO. NET
Distributed applications with .NET Remoting
Integration with COM, COM+, and Active Directory
Chapter1:.NET.Architecture
Overview of.NET
What Happens When You Compile and run a program
Intermediate Language
Language Interoperability
The.NETBase class library
Ihe Components of the .NET Framework
Languages and Technologies
Putting It All Together
A Historical Note
Summary
Chapter2:Introduction to C#
The Development of C#
C#
Chapter3:C# Basics
Getting Started
c# Data Types
c# Predefined Types
Complex Types
Variable
Constants
Operators
Flow Control
Program Structure
Compiling C# Files
Console I/O
Comments
Summary
Chapter4:Classes and Inheritance
Before We Begin
A Closer Look at Objects and Classes
Properties
Inheritance
OOP Program Architecture
Summary
Chapter5:Object Oriented C#
Method Overloading
Construction and Disposal
What Happens in Memory:Reference and Value Variables
Structs
Operator Overloading
Indexers
Interfaces
Summary
Chapter6:Advanced C# Fopics
Errors and Exception Handling
User-Defined Casts
Delegates
Events
The C# Preprocessor Directives
Attributes
Unsafe Code
Summary
Chapter7:C# and the Base Classes
System.Object
String Handling
Regular Expressions
Gustom Attributes
Reflection
Threading
Summary
Chapter8:Programming in the .NET.Environment
Visual Studio.NET
Other.NET Tools
.NET Usage Guidelines
Summary
Chapter9:Windows Applications
Architecture
Forms
Controls
Menus
Summry
Chapter10:Assemblies
What are Assemblies?
Assembly Structure
Cross Language Support
Adding Resources to Assemblies
Global Assembly Cache
Create Shared Assemblies
Configuration
Deployment
Summary
Chapter11:Data Access with.NET
ADO.NET Overview
Connections
Commands
Data Readers
Data Sets
XML Schema
Workingwith ADO.NET
Summary
Chapter12:Viewing.NET Data
The DataGrid Control
Data Binding
Visual Studio and Data Access
Summary
Chapter13:XML
W3C Standards
System.XML
Summary
Chapter14:File and Registry Opertions
Managing the File System
Moving,Copying and Deleting Files
Reading and Writing to Files
Reading and Writing to the Registry
Summary
Chapter15:Working with the Active Directory
Architecture of the Active Directory
Administration of the Active Directory
Active Directory Service Interfaces (ADSI)
Programming the Active Directory
Searching for User Objects
Summary
Chapter16:ASP.NET Pages
ASP.NET Introduction
ASP.NET Web Forms
ADO.NET and Data Binding
Application Configuration
Summary
Chapter17:Web Services
SOAP
WSDL
Web Services
Extending the Meeting Room Booker EXample
Summary
Chapter18:Custom Controls
User Controls
Custom Controls
A Straw Poll Control
Summary
Chapter19:COM Interoperability
COM and .NET Compared
Using COM Components in.NET
Using.NET Components in COM
Chapter20:COM+Services
Introduction
COM+Transactions
COM+Services and Object Lifetime
New COM+Services
Chapter21:Graphics with GDI+
Undertanding Drawing Principles
Measuring Coordinates and Areas
A Note About Debugging
Drawing Scrollable Windows
Colors
Pens and Brushes
Drawing Shapes and Lines
Displaying Images
Drawing Text
Fonts and Font Families
Editing a Text Document:The CapsEditor Sample
Printing
Summary
Chapter22:Accessing the Internet
The WebClient class
The webrequest classes
Displaying output as an HTML page
Utility classes
Lower level protocols
Summary
Chapter23:Distributed applications with .NET remoting
What is .net remoting?
.NET Remoting overview
Contexts
Remote objects,Clients and servers
.NET Remoting Architecture
Summary
Chapter24:Windows Services
What are Services?
Architecture
System.serviceprocess Namespsace
Create a service
Monitoring and controlling the service
Troubleshooting
Windows 200 service Features
Summary
Chapter25:.NET Security
Code Access Security
Support for security in the framework
Role-Based security
Manaing security policy
Summary
AppendixA:C# for C++ Developers
AppendixB:C# for Java Developers
AppendixC:C# for VB6 Developers
AppendixD:C# cOMPILATION oPTIONS
Index