|
||||||||
Chapter 1, Language Integrated Query (LINQ)Thischapter covers Language Integrated Query (LINQ) and itsus age with objects, ADO.NET, and XML. There are recipes using many of the Standard Query Operators and showing how to use some of the query operators that are not keywords in the language, but are still quite powerful. Chapter 2, Strings and Characters Thischapter coversboth the String and Char data types. Recipes show such things as how to compare strings in various ways, encode/decode strings, break strings apart, and put them back together again. Chapter 3, Classes and Structures - Thislarge chapter containsrecipesdealing with both classand structure data types. This chapter covers a wide range of recipes, from design patterns to converting a class to a full-blown command-line argument-processing system. Chapter 4, Generics - Thischapter focuseson the genericscapacity in C#, which allowsyou to have code operate uniformly on valuesof different types. Chapter 5, Collections - This chapter examines recipes that make use of collections. The collection recipes make use of—as well as extend the functionality of—the array (single, multi, and jagged), the List<T>, and the Hashtable. Chapter 6, Iterators, Partial Types, and Partial Methods - In this chapter, two of the features of C# are used to solve very different programming problems. Chapter 7, Exception Handling - The recipesin thischapter focuson the best waysto implement exception handling in your application. Preventing unhandled exceptions, reading and displaying stack traces, and throwing/rethrowing exceptions are included recipes. Chapter 8, Diagnostics - This chapter presents recipes that use data types that fall under the System. Diagnostics namespace. Recipes deal with the Trace/Debug classes, event logs, processes, performance counters, and custom debugger displays for your types. Chapter 9, Delegates, Events, and Lambda Expressions - This chapter’s recipes show how delegates, events, and lambda expressions can be used in your applications. Recipes allow manipulation of delegates that call more than one method, synchronous delegates, and asynchronous delegates. Chapter 12, Filesystem I/O - This chapter deals with file system interactions in four distinct ways. The first way is to look at typical file interactions; the second way looks at directory- or folder-based interactions; the third way deals with paths and temporary files; and the fourth way deals with advanced file system I/O topics. Chapter 13, Reflection - This chapter shows ways to use the built-in assembly inspection system provided by the .NET Framework to determine what types, interfaces, and methods are implemented within an assembly and how to access them in a latebound fashion. Chapter 14, Web - This chapter covers accessing a web site and its content as well as programmatically determining web site configuration. Among the recipes in this chapter are using the web browser control and setting up caching triggers to refresh cached data when a database table changes. Chapter 15, XML - If you use .NET, it is likely that you will be dealing with XML to one degree or another; in this chapter, we explore some of the uses for XML and how to program against it using LINQ to XML, the XmlReader/XmlWriter, and Xml-Document. There are examples using both XPath and XSLT, and topics such as the validation of XML and transformation of XML to HTML are shown. Chapter 16, Networking - Thischapter exploresthe connectivity optionsprovided by the .NET Framework and how to programmatically access network resources. Recipes for using TCP/IP directly, named pipesfor communication, building your own port scanner, and more are covered here. Chapter 17, Security - There are many ways to write secure code and protect data using the .NET Framework, and in this chapter, we explore areas such as controlling access to types, encryption and decryption, securely storing data, and using programmatic and declarative security. Download free ebooks on c#: C# 3.0 Cookbook 3rd Edition
|
| More free ebooks | |
Free programing ebooks
Chapter 1, Language Integrated Query (LINQ)