You are previewing C# and the .NET Framework: The C++ Perspective.
O'Reilly logo
C# and the .NET Framework: The C++ Perspective

Book Description

This book covers topics ranging from the general principles of .NET through the C# language and how its used in ASP.NET and Windows Forms. Written by programmers for programmers, the content of the book is intended to get readers over the hump of the .NET learning curve and provide solid practical knowledge that will make developers productive from day one.

Table of Contents

  1. Copyright
  2. About the Authors
  3. Acknowledgments
  4. Tell Us What You Think!
  5. Introduction
  6. The .NET Framework
    1. A Quick Introduction to .NET
      1. Dispelling the Myth of the .NET Virtual Machine
      2. Microsoft Intermediate Language (IL)
      3. An Introduction to .NET Memory Management
      4. The .NET Framework Type System
      5. The .NET Framework System Objects
      6. C#—A New Programming Language
      7. How Objects Describe Themselves
      8. Component Object Model (COM) Interoperability
      9. Windows Forms, Web Controls, and GDI+
      10. Tools
      11. Assemblies, the .NET Packaging System
      12. Programming with Attributes
      13. Security
      14. Ready, Set, GO!
    2. The Common Language Runtime
      1. Overview
      2. The CLR in Relation to .NET
      3. Summary
    3. IL Intermediate Language
      1. Language Inter-Op
      2. Hello IL
      3. Functions
      4. Classes
      5. ILDASM
      6. Metadata
      7. Reflection API
      8. Summary
    4. Working with Managed Extensions to C++
      1. The C++ Extension Keywords
      2. Using the C++ Compiler for Managed C++
      3. Garbage Collected Classes
      4. The #using Directive
      5. The String
      6. Mixing Managed and Unmanaged Code
      7. Pinning Managed Code
      8. Managed Interfaces
      9. Creating Value Types
      10. Creating and Using Delegates
      11. Calling Custom .NET DLLs from Your Managed C++ Code
      12. Using Managed and Unmanaged C++ DLLs in Your .NET Programs
      13. Using Properties in Your C++ Classes
      14. Ensuring the Alignment and Packing of Your C++ Structures
      15. Summary
    5. Introducing Visual Studio.NET
      1. The Integrated Development Environment (IDE)
      2. Section A: The Main Editing Area
      3. Section B: Solutions, Classes, Items, and Help
      4. Section C: The Toolbox and Server Explorer
      5. Section D: Tasks, Output, Search Results, and Watches
      6. Section E: Properties, Dynamic Help, and Favorites
      7. Debugging Programs
      8. Summary
  7. The C# Language
    1. C# Basics
      1. The C# Type System
      2. Programming Concepts
      3. Arrays
      4. struct
      5. Classes
      6. Interfaces
      7. Delegates
      8. Summary
    2. Advanced C#
      1. .NET Collections
      2. Attributes
      3. XML Serialization
      4. Summary
  8. Windows Forms
    1. Introduction to Windows Forms
      1. The Hello Windows Forms Application
      2. Creating and Using an Event Handler
      3. Defining the Border Style of the Form
      4. Adding a Menu
      5. Adding a Menu Shortcut
      6. Handling Events from Menus
      7. Summary
    2. User Interface Components
      1. Dialogs
      2. Creating Dialogs
      3. Using Controls
      4. Summary
    3. Data Bound Controls
      1. Data Binding Strategies
      2. Data Binding Sources
      3. Simple Binding
      4. Simple Binding to a DataSet
      5. Complex Binding of Controls to Data
      6. Binding Controls to Databases Using ADO.NET
      7. Creating a Database Viewer with Visual Studio and ADO.NET
      8. Summary
    4. Windows Forms Example Application (Scribble .NET)
      1. Resources in .NET
      2. Localization Nuts and Bolts
      3. .NET Resource Management Classes
      4. Creating Text Resources
      5. Using Visual Studio.NET for Internationalization
      6. Image Resources
      7. Using Image Lists
      8. Programmatic Access to Resources
      9. Reading and Writing RESX XML Files
      10. Summary
    5. GDI+: The .NET Graphics Interface
      1. The Basic Principles of GDI+
      2. The Graphics Object
      3. Graphics Coordinates
      4. Drawing Lines and Simple Shapes
      5. Using Gradient Pens and Brushes
      6. Textured Pens and Brushes
      7. Tidying up Your Lines with Endcaps
      8. Curves and Paths
      9. The GraphicsPath Object
      10. Clipping with Paths and Regions
      11. Transformations
      12. Alpha Blending
      13. Alpha Blending of Images
      14. Other Color Space Manipulations
      15. Summary
    6. Practical Windows Forms Applications
      1. Using the Properties and Property Attributes
      2. Demonstration Application: FormPaint.exe
      3. Summary
  9. Web Technologies
    1. ASP.NET
      1. The New Web
      2. ASP.NET Essentials
      3. Hello ASP.NET
      4. Adding Some Meat
      5. Summary
    2. .NET Data Access
      1. DataLayer
      2. Employee and Department Class
      3. Summary
    3. WebForms
      1. Introduction to ASP.NET WebForms
      2. UserControls
      3. HeaderControl
      4. ASPX Pages
      5. Summary
    4. WebServices
      1. Echo Service
      2. Returning User-Defined Types
      3. XML Attributes
      4. Summary
  10. Component Usage
    1. Assemblies
      1. What Is an Assembly?
      2. Single File Assembly
      3. Multiple File Assembly
      4. Assembly Attributes
      5. Loading Assemblies at Runtime
      6. Summary
    2. Signing and Versioning
      1. DLL Hell
      2. Global Assembly Cache
      3. Versioning
      4. Side-By-Side Assemblies
      5. Custom Binding: Application Configuration
      6. Summary
    3. COM Interoperability
      1. The World of COM
      2. .NET COM Support
      3. Exposing .NET Components as COM Objects
      4. Summary
    4. Threads
      1. Multithreading 101
      2. Thread Synchronization
      3. Extending .NET Threads
      4. Summary
  11. Index