How This Book Is Organized
This book is organized into seventeen chapters, each of which focuses on a particular topic in creating C# solutions. The following paragraphs summarize each chapter to give you an overview of this book’s contents:
- Chapter 1
This chapter focuses on the numeric data types used in C# code. Recipes cover such things as numeric conversions, using bitwise operators on numbers, and testing strings to determine whether they contain a numeric value.
- Chapter 2
This chapter covers both the
Stringdata type as well as theChardata type. Various recipes show how to compare strings in various ways, encode/decode strings, break strings apart, and put them back together again, to name a few.- Chapter 3
This large chapter contains recipes dealing with both class and structure data types. This chapter covers a wide range of recipes from design patterns to converting a class to interoperating with COM.
- Chapter 4
This chapter covers the
enumdata type. Recipes display, convert and test enumeration types. In addition, there are recipes on using enumerations that consist of bit flags.- Chapter 5
The recipes in this chapter focus on the best ways to implement exception handling in your application. Preventing unhandled exceptions, reading and displaying stack traces, and throwing/rethrowing exceptions are included recipes. In addition, specific recipes show how to overcome some tricky situations, such as exceptions from late-bound called methods.
- Chapter 6
This chapter explores ...