0%

Book Description

Even if you're familiar with C# syntax, knowing how to combine various language features is a critical skill when building applications. This handy cookbook is packed full of recipes to help you solve issues for C# programming tasks you're likely to encounter. You'll learn tried-and-true techniques to help you achieve greater productivity and improve the quality of your code.

Author and independent consultant Joe Mayo shares some of the most important practices you'll need to be successful as a C# developer. Each section of this cookbook describes some useful facet of the C# programming language. These recipes--the result of many years of experience--are proven concepts for solving real-world problems with C#.

  • Learn new techniques for using the latest features of C# 9.0
  • Employ patterns for solving a wide selection of problems
  • Work with recipes for important C# coding scenarios
  • Reuse code that solves common problems
  • Increase your knowledge of C# programming
  • Improve the quality of your applications

Table of Contents

  1. 1. Constructing Types and Apps
    1. 1.1. Overview
    2. 1.2. 1.1 Managing Object End-of-Lifetime
    3. 1.3. 1.2 Removing Explicit Dependencies
    4. 1.4. 1.3 Delegating Object Creation to a Class
    5. 1.5. 1.4 Delegating Object Creation to a Method
    6. 1.6. 1.5 Designing Application Layers
    7. 1.7. 1.6 Returning Multiple Values from a Method
    8. 1.8. 1.7 Converting From Legacy to Strongly Typed Classes
    9. 1.9. 1.8 Making Classes Adapt to your Interface
    10. 1.10. 1.9 Designing a Custom Exception
    11. 1.11. 1.10 Building a Fluid Interface
  2. 2. Coding Algorithms
    1. 2.1. Overview
    2. 2.2. 2.1 Processing strings Efficiently
    3. 2.3. 2.2 Simplifying Instance Cleanup
    4. 2.4. 2.3 Keeping Logic Local
    5. 2.5. 2.4 Operating on Multiple Classes the Same Way
    6. 2.6. 2.5 Checking for Type Equality
    7. 2.7. 2.6 Processing Data Hierarchies
    8. 2.8. 2.7 Converting From/To Unix Time
    9. 2.9. 2.8 Caching Frequently Requested Data
    10. 2.10. 2.9 Delaying Type Instantiation
    11. 2.11. 2.10 Parsing Data Files
44.192.75.131