C# Cookbook TOC 3

Recipe9.3.Handling Exceptions Individually for Each Delegate in a Multicast Delegate
Recipe9.4.Converting Delegate Invocation from Synchronous to Asynchronous
Recipe9.5.Wrapping Sealed Classes to Add Events
Recipe9.6.Passing Specialized Parameters to and from an Event
Recipe9.7.An Advanced Interface Search Mechanism
Recipe9.8.An Advanced Member Search Mechanism
Recipe9.9.Observing Additions and Modifications to a Hashtable
Recipe9.10.Using the Windows Keyboard Hook
Recipe9.11.Tracking and Responding to the Mouse
Recipe9.12.Using Anonymous Methods
Recipe9.13.Set up Event Handlers Without the Mess
Recipe9.14.Using Different Parameter Modifiers in Anonymous Methods
Recipe9.15.Using Closures in C#
Recipe9.16.Performing Multiple Operations on a List Using Functors
Chapter 10. Regular Expressions
Recipe10.1.Enumerating Matches
Recipe10.2.Extracting Groups from a MatchCollection
Recipe10.3.Verifying the Syntax of a Regular Expression
Recipe10.4.Quickly Finding Only the Last Match in a String
Recipe10.5.Replacing Characters or Words in a String
Recipe10.6.Augmenting the Basic String Replacement Function
Recipe10.7.Implementing a Better Tokenizer
Recipe10.8.Compiling Regular Expressions
Recipe10.9.Counting Lines of Text
Recipe10.10.Returning the Entire Line in Which a Match Is Found
Recipe10.11.Finding a Particular Occurrence of a Match
Recipe10.12.Using Common Patterns
Recipe10.13.Documenting Your Regular Expressions
Recipe10.14.Using Built-in Regular Expressions to Parse ASP. NET Pages
Chapter 11. Data Structures and Algorithms
Recipe11.1.Creating a Hash Code for a Data Type
Recipe11.2.Creating a Priority Queue
Recipe11.3.Creating a Double Queue
Recipe11.4.Determining Where Characters or Strings Do Not Balance
Recipe11.5.Creating a One-to-Many Map (MultiMap)
Recipe11.6.Creating a Binary Tree
Recipe11.7.Creating an n-ary Tree
Recipe11.8.Creating a Set Object
Chapter 12. Filesystem I/O
Recipe12.1.Creating, Copying, Moving, or Deleting a File
Recipe12.2.Manipulating File Attributes
Recipe12.3.Renaming a File
Recipe12.4.Determining Whether a File Exists
Recipe12.5.Choosing a Method of Opening a File or Stream for Reading and/or Writing
Recipe12.6.Accessing Part of a File Randomly
Recipe12.7.Outputting a Platform-Independent EOL Character
Recipe12.8.Creating, Writing to, and Reading from a File
Recipe12.9.Determining Whether a Directory Exists
Recipe12.10.Creating, Copying, Moving, or Deleting a Directory
Recipe12.11.Manipulating Directory Attributes
Recipe12.12.Renaming a Directory
Recipe12.13.Searching for Directories or Files Using Wildcards
Recipe12.14.Obtaining the Directory Tree
Recipe12.15.Parsing a Path
Recipe12.16.Parsing Paths in Environment Variables
Recipe12.17.Verifying a Path
Recipe12.18.Using a Temporary File in Your Application
Recipe12.19.Opening a File Stream with Just a File Handle
Recipe12.20.Writing to Multiple Output Files at One Time
Recipe12.21.Launching and Interacting with Console Utilities
Recipe12.22.Locking Subsections of a File
Recipe12.23.Watching the Filesystem for Specific Changes to One or More Files or Directories
Recipe12.24.Waiting for an Action to Occur in the Filesystem
Recipe12.25.Comparing Version Information of Two Executable Modules
Recipe12.26.Querying Information for All Drives on a System
Recipe12.27.Encrypting/Decrypting an Existing File
Recipe12.28.Compressing and Decompressing Your Files
Chapter 13. Reflection
Recipe13.1.Listing Referenced Assemblies
Recipe13.2.Listing Exported Types
Recipe13.3.Finding Overridden Methods
Recipe13.4.Finding Members in an Assembly
Recipe13.5.Finding Members Within an Interface
Recipe13.6.Determining and Obtaining Nested Types Within an Assembly
Recipe13.7.Displaying the Inheritance Hierarchy for a Type
Recipe13.8.Finding the Subclasses of a Type
Recipe13.9.Finding All Serializable Types Within an Assembly
Recipe13.10.Filtering Output When Obtaining Members
Recipe13.11.Dynamically Invoking Members
Recipe13.12.Providing Guidance to Obfuscators
Recipe13.13.Determining if a Type or Method Is Generic
Recipe13.14.Reading Manifest Resources Programmatically
Recipe13.15.Accessing Local Variable Information
Recipe13.16.Creating a Generic Type
Chapter 14. Web
Recipe14.1.Converting an IP Address to a Hostname
Recipe14.2.Converting a Hostname to an IP Address
Recipe14.3.Parsing a URI
Recipe14.4.Forming and Validating an Absolute Uri
Recipe14.5.Handling Web Server Errors
Recipe14.6.Communicating with a Web Server
Recipe14.7.Going Through a Proxy
Recipe14.8.Obtaining the HTML from a URL
Recipe14.9.Using the New Web Browser Control
Recipe14.10.Tying Database Tables to the Cache