C# Unleashed

Book description

Part I provides the most basic elements of C# language syntax.

Part II covers object and component programming in C#.

Part III introduces several of the class libraries available to C#.

Part IV gives those advanced topics for extreme performance and enterprise programming projects.

Part V goes into depth on the C# environment. Included are garbage collection and the effects on a program., cross-language development, the common language runtime, versioning and assemblies, and providing security for your programs.

Part VI is the Appendix. It has supplementary material on compiling programs, an overview of .NET Class Library components, and some other resources that may be of interest.

Table of contents

  1. Copyright
  2. About the Author
  3. Acknowledgments
  4. Tell Us What You Think!
  5. Introduction
  6. C# Basics
    1. The C# Environment
      1. The Common Language Infrastructure (CLI)
      2. Standardization
      3. The .NET Architecture
      4. Where C# Fits In
      5. Summary
    2. Getting Started with C#
      1. Writing a Simple C# Program
      2. Comments
      3. Identifiers and Keywords
      4. Style
      5. Preparing a Program To Run
      6. Basic C# Types
      7. Definite Assignment
      8. Basic Conversions
      9. Arrays
      10. Interacting with Programs
      11. Summary
    3. Writing C# Expressions
      1. Unary Operators
      2. Binary Operators
      3. The Ternary Operator
      4. Other Operators
      5. Enumeration Expressions
      6. Array Expressions
      7. Statements
      8. Blocks
      9. Labels
      10. Declarations
      11. Operator Precedence and Associativity
      12. Summary
    4. Using Statements and Loops to Control Program Flow
      1. if Statements
      2. switch Statements
      3. C# Loops
      4. goto Statements
      5. break Statements
      6. continue Statements
      7. return Statements
      8. Summary
    5. Debugging and Pre-Processing
      1. Pre-Processing Directives
      2. Debugging C# Programs
      3. Summary
  7. Object and Component Programming with C#
    1. Object and Component Concepts
      1. What Is an Object?
      2. Object Classification
      3. Object Hierarchies
      4. Abstraction
      5. Objects within Objects
      6. Objects with Different Behaviors
      7. Component Interfaces
      8. Component Properties
      9. Component Events
      10. Summary
    2. Working with Classes
      1. Class Members
      2. Instance and Static Members
      3. Use of Accessibility Modifiers
      4. Fields
      5. Constructors
      6. Destructors
      7. Methods
      8. Properties
      9. Indexers
      10. Full XML Comments
      11. Summary
    3. Designing Object-Oriented Programs
      1. Inheritance
      2. Encapsulating Object Internals
      3. Polymorphism
      4. Summary
    4. Overloading Class Members and Operators
      1. Overloading Methods
      2. Overloading Indexers
      3. Overloading Operators
      4. Resolving Overloaded Members
      5. Summary
    5. Handling Exceptions and Errors
      1. try/catch Blocks
      2. finally Blocks
      3. Predefined Exception Classes
      4. Handling Exceptions
      5. Designing Your Own Exceptions
      6. checked and unchecked Statements
      7. Summary
    6. Delegates and Events
      1. Delegates
      2. Events
      3. Summary
    7. Organizing Code with Namespaces
      1. Why Namespaces?
      2. Namespace Directives
      3. Creating Namespaces
      4. Namespace Members
      5. Scope and Visibility
      6. Summary
    8. Creating structs
      1. Identifying the class/struct Relationship
      2. Type System Unification
      3. Designing a New Value Type
      4. Summary
    9. Implementing Interfaces
      1. Abstract Class Versus Interface
      2. Interface Members
      3. Implicit Implementation
      4. Explicit Implementation
      5. Mapping
      6. Inheritance
      7. Summary
    10. Performing Conversions
      1. Implicit Versus Explicit Conversions
      2. Value Type Conversions
      3. Reference Type Conversions
      4. Summary
  8. Using Class Libraries with C#
    1. Presenting Graphical User Interfaces
      1. Windows
      2. Controls
      3. N-Tier Architecture
      4. Menus
      5. Summary
    2. File I/O and Serialization
      1. Files and Directories
      2. Streams
      3. Serialization
      4. Summary
    3. XML
      1. Writing
      2. Reading
      3. Summary
    4. Database Programming with ADO.NET
      1. Making Connections
      2. Viewing Data
      3. Manipulating Data
      4. Calling Stored Procedures
      5. Retrieving DataSets
      6. Summary
    5. Writing Web Applications with ASP.NET
      1. A Simple Web Page
      2. Controls
      3. Making a Web Form
      4. Code-Behind Web Pages
      5. Summary
    6. Remoting
      1. Basic Remoting
      2. Proxys
      3. Channels
      4. Lifetime Management
      5. Summary
    7. Web Services
      1. Web Service Basics
      2. Using Web Services
      3. Summary
  9. Extreme C#
    1. Multi-Threading
      1. Creating New Threads
      2. Synchronization
      3. Summary
    2. Browsing the Network Libraries
      1. Implementing Sockets
      2. Working with HTTP
      3. Summary
    3. String Manipulation
      1. The String Class
      2. The StringBuilder Class
      3. String Formatting
      4. Regular Expressions
      5. Summary
    4. C# Collections
      1. Pre-Existing Collections
      2. Collection Interfaces
      3. Creating a Collection
      4. Summary
    5. Attributes
      1. Using Attributes
      2. Using Attribute Parameters
      3. Using Attribute Targets
      4. Creating Your Own Attributes
      5. Getting Attributes from a Class
      6. Summary
    6. Reflection
      1. Discovering Program Information
      2. Dynamically Activating Code
      3. Reflection.Emit
      4. Summary
    7. Localization and Resources
      1. Resource Files
      2. Multiple Locales
      3. Summary
    8. Unsafe Code and PInvoke
      1. Unsafe Code
      2. Platform Invoke
      3. Summary
    9. Runtime Debugging
      1. Simple Debugging
      2. Conditional Debugging
      3. Runtime Tracing
      4. Making Assertions
      5. Summary
    10. Performance Monitoring
      1. Accessing Built-in Performance Counters
      2. Implementing Timers
      3. Building a Customized Performance Counter
      4. Analyzing Performance with Sampling
      5. Summary
    11. Integrating C# with COM
      1. Communicating with COM from .NET
      2. Exposing a .NET Component as a COM Component
      3. Introduction to .NET Support for COM+ Services
      4. Summary
  10. The C# Environment
    1. Garbage Collection
      1. Automatic Memory Management
      2. Finalizing Your Code Properly
      3. Controlling Garbage Collection
      4. Summary
    2. Cross-Language Programming with C#
      1. The Common Type System (CTS)
      2. The Common Language Specification (CLS)
      3. Tips for Making Your Code CLS-Compatible
      4. Writing a Cross-Language Program
      5. Summary
    3. The Common Language Runtime
      1. Managed Execution
      2. Metadata
      3. Managed Services
      4. Summary
    4. Versioning and Assemblies
      1. Inside Assemblies
      2. Assembly Features
      3. Configuration
      4. Deployment
      5. Summary
    5. Securing Code
      1. Code-Based Security
      2. Role-Based Security
      3. Security Utilities
      4. Summary
  11. Appendixes
    1. Compiling Programs
      1. Assemblies
      2. Debug
      3. Miscellaneous
      4. Optimization
      5. Output
      6. Preprocessing
      7. Resources
    2. The .NET Frameworks Class Libraries
    3. Online Resources
      1. C# Sites
      2. .NET Sites

Product information

  • Title: C# Unleashed
  • Author(s): Joseph Mayo
  • Release date: November 2001
  • Publisher(s): Sams
  • ISBN: 067232122X