You are previewing Special Edition Using C#.
O'Reilly logo
Special Edition Using C#

Book Description

Visual C#.NET is a completely new language engineered by Microsoft to encompass the strengths and fix the problems of C, C++, and Visual Basic. Special Edition Using Visual C#.NET will provide a comprehensive training and reference resource to readers. The book includes extensive information on C# and how it works with the NGWS runtime environment, Visual C++.NET, Java, Jscript, Visual Basic.NET, ADO+, ASP.NET plus much more. As part of the Special Edition Using series, the book is a comprehensive training guide with multiple programming examples and projects as well as a complete reference to C# and its intricacies. Because it is a book written for IT professionals and students, special emphasis is put on troubleshooting, debugging, and hands-on learning. The authors of SE Using Visual C#.NET come to Que from NIIT, a global, multifaceted organization based in India specializing in software development, education, training and e-business solutions. NIIT has the world's largest educational multimedia software development facility with a team of over 700 instructional design professionals and provides computer training at 1,970 learning centers in 26 different countries including the United States. NIIT has received many awards for their excellence in training and programming including the "Best Training Award" from Microsoft.

Table of Contents

  1. Copyright
  2. About the Authors
  3. About NIIT
  4. Acknowledgments
  5. Tell Us What You Think!
  6. Introduction
  7. Introducing C#
    1. The C# Story
      1. What C# Is
      2. The Evolution of C#
      3. C# and Other Languages
      4. Introducing Visual Studio .NET
      5. Summary
    2. Introducing .NET
      1. What Is .NET?
      2. Software As a Service
      3. Components of .NET
      4. What Is the .NET Framework?
      5. The Execution Model of the .NET Framework
      6. Summary
    3. The .NET Execution Model
      1. The Virtual Execution System (VES)
      2. Producing Managed Code
      3. Compiling IL to Native Code
      4. Execution
      5. Deployment
      6. Summary
  8. The Fundamentals of the C# Language
    1. Programming in C#
      1. Your First C# Program
      2. The Main() Method
      3. Comment Entries
      4. Input/Output Operations in C#
      5. Compiling and Executing a C# Program
      6. Language Features
      7. Summary
    2. Types
      1. Introducing Data Types
      2. Variables and Constants
      3. Value Types
      4. Reference Types
      5. Conversions
      6. Summary
    3. Expressions and Statements
      1. Using Expressions
      2. Statements
      3. Summary
    4. Arrays, Structs, and Enumerations
      1. Arrays
      2. Structs
      3. Enumerations
      4. Summary
  9. Advanced Features and Tools in C#
    1. Classes
      1. Object Orientation in C#
      2. Class Declaration
      3. Class Members
      4. Collections
      5. Reflection
      6. Troubleshooting
      7. Summary
    2. Exception Handling
      1. Kinds of Exceptions
      2. The Differences Between Exception Handling in C# and C++
      3. Exception-Handling Statements
      4. Process of Exception Handling
      5. User-Defined Exceptions
      6. Summary
    3. Namespaces, Assemblies, and Manifests
      1. Namespaces
      2. Manifests and Assemblies
      3. Versioning
      4. Troubleshooting
      5. Summary
    4. Interfaces
      1. Interface Declaration
      2. Interfaces Members
      3. Interface Implementation
      4. Interface Mapping
      5. Interface Implementation Inheritance
      6. Interface Reimplementation
      7. Abstract Classes and Interfaces
      8. Querying for Interface Implementation
      9. Summary
    5. Delegates and Events
      1. Delegates
      2. Events
      3. Summary
    6. Properties and Indexers
      1. Properties
      2. Indexers
      3. Troubleshooting
      4. Summary
    7. Attributes
      1. Attribute Specification
      2. Attribute Instance
      3. Troubleshooting
      4. Summary
    8. XML Documentation
      1. Tags for XML Documentation
      2. Formatting the XML File
      3. Processing the XML File
      4. XML and Visual Studio .NET
      5. Summary
    9. Debugging
      1. Introduction to Debugging
      2. The .NET SDK Debugger
      3. The Microsoft Intermediate Language Assembler and Disassembler
      4. Troubleshooting
      5. Summary
  10. Developing Applications Using C#
    1. Windows Applications
      1. Features of a Windows Application
      2. Windows Forms
      3. Creating a Simple Windows Forms Application
      4. Form Controls
      5. An Advanced Windows Application
      6. User-Defined Controls
      7. Deploying Windows Applications
      8. Troubleshooting
      9. Summary
    2. COM Interoperability
      1. The Need for Interacting with Existing COM Components
      2. Accessing Existing COM Components from Managed Code
      3. Importing ActiveX Controls
      4. Accessing C# Components from Unmanaged Code
      5. The PInvoke Utility
      6. Troubleshooting
      7. Summary
    3. Working with ADO.NET
      1. Introducing ADO.NET
      2. Comparing ADO.NET and ADO
      3. DataSet
      4. Data Providers
      5. Accessing Databases
      6. Troubleshooting
      7. Summary
    4. Working with ASP.NET
      1. Introducing ASP.NET
      2. Comparing ASP and ASP.NET
      3. A Simple ASP.NET Page
      4. Troubleshooting
      5. Summary
    5. Web Services
      1. Definition of Web Services
      2. Evolution of Web Services
      3. Architecture of Web Services
      4. Software As a Service
      5. Web Services and .NET
      6. Creating a Simple Web Service
      7. Creating a Web Service Using the VS .NET IDE
      8. Troubleshooting
      9. Summary
    6. COM+ Services
      1. Transition from COM to COM+
      2. COM+ Services and .NET
      3. Registering Components by Using the Regscvs.exe Utility
      4. Summary
  11. Appendixes
    1. COM Fundamentals
      1. The Three-Tier Architecture
      2. What Is COM?
    2. ADO
      1. Introduction to ADO
      2. Working with ADO
    3. Active Server Pages
      1. Introduction to Active Server Pages
    4. A C# Quick Reference
      1. Compiler Options
      2. Preprocessor Directives
    5. Migrating from Java
      1. Jump to .NET
  12. GLOSSARY