Chapter 7, "Exception Handling," shows you how best to implement error handling in your application. You will see when to catch and re-throw errors, create exception types, and deal with unhandled exceptions in different types of applications. Chapter 8, "Diagnostics," shows you how to work with data types that fall under the System.Diagnostic namespace. These include Debug/Trace classes, event logs, performance counters, and custom debugger displays.
Chapter 9, "Delegates, Events, and Lambda Expressions," examines each of these in detail. A delegate is an object which represents a method and, optionally the "this" object with that method. An Event is a specialized delegate type primarily used for messaging. Lambda Expressions provide a more concise, functional syntax for writing anonymous methods, which allow code blocks to be written inline where delegate values are expected. Chapter 10, "Regular Expressions," covers the use of the set of classes that are employed to run regular expressions against strings. Included is a recipe that contains many common patterns such as verify an e-mail address, match a zip code, match the format of a social security number, and match or verify a URL.
Chapter 11, "Data Structures and Algorithms," implements certain data structures and algorithms that are not in the Framework Class Library. Here are items such as queues, maps, trees, and hashes are examined. Chapter 12, "Filesystem I/O," looks at four different ways of file system interaction. First is the typical based on the file, second are folder based actions, third is with paths, or temporary files, and finally focuses on advanced file system I/O.
Chapter 13, "Reflection," covers ways to use the built-in assembly inspection system provided by the .NET Framework to determine what types, interfaces, and methods are implemented in an assembly. Chapter 14, "Web," focuses on accessing a website, its content, and programmatically determining website configuration.
Chapter 15, "XML," examines some of the uses for XML and how to program against it using LINQ to XML as well as other methods. Chapter 16, "Networking,," shows how to work with the connectivity option provided by the .NET Framework.
Chapter 17, "Security," describes some of the many ways to write secure code and protect data using the .NET framework such as controlling access to types, encryption/decryption, as well as using programmatic and declarative security. Chapter 18, "Threading and Synchronization," shows you how to use multiple threads of execution in a .NET program, as well as addressing issues such as protecting resources and how to use synchronization primitives to write thread-safe code.








Article comments