您好,欢迎光临本网站![请登录][注册会员]  
文件名称: c3.0cookbook
  所属分类: C#
  开发工具:
  文件大小: 2mb
  下载次数: 0
  上传时间: 2010-05-10
  提 供 者: wenh****
 详细说明: C#3.0编程图书 This book is organized into 20 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, Language Integrated Query (LINQ) Thischapter coversLanguage 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 powe rful. 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. This is the Title of the Book, eMatter Edition Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved. xx | Preface Chapter 4, Generics Thischapter focuseson the genericscapacity in C#, which allowsyou to have code operate uniformly on valuesof different types. There are recipesto help your general understanding of genericsaswell aswhen they are appropriate to use, what support is provided in the Framework for them, and how to create custom implementations of collections using generics. 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, and the Hashtable. The generic-based collections are explored, and the variouswaysto create your own strongly typed collection are also discussed. 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. We show how you can implement iterators for generic and nongeneric typesand implement foreach functionality using iterators, as well as custom iterator implementations. The other feature of C# in this chapter is partial types and methods. We show how you can use partial types and methods to do such things as better segmenting your code and how to generate code that is more easily extensible. 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. In addition, specific recipes show how to overcome some tricky situations, such as exceptions from late-bound called methods. 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. Lambda expressions are explored, and recipes show their usage in place of oldstyle delegates as well as their use in implementing closures and functors. Chapter 10, Regular Expressions This chapter covers a useful set of classes that are employed to run regular expressions against strings. Recipes enumerate regular expression matches, break up strings into tokens, find/replace characters, and verify the syntax of a regular expression. We also include a recipe that contains many common regular expression patterns. This is the Title of the Book, eMatter Edition Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved. Preface | xxi Chapter 11, Data Structures and Algorithms Thischapter venturesa bit outside of what isprovided for you in the .NET Framework Class Library and implements certain data structures and algorithms that are not in the FCL, or possibly are not in existence exactly the way you would like to use them, but are ones that you have used to solve problems before. Items such as queues, maps, trees, and hashes are examined. 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. Chapter 18, Threading and Synchronization This chapter addresses the subject of using multiple threads of execution in a .NET program and issues such as how to implement threading in your application, protecting resources from and allowing safe concurrent access, storing per-thread data, and how to use the synchronization primitives in .NET to write thread-safe code. This is the Title of the Book, eMatter Edition Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved. xxii | Preface Chapter 19, Toolbox This chapter has recipes for those random sorts of operations that developers run into over and over again, such as determining locations of system resources, sending email, and working with services. It also covers some less frequently accessed but helpful application pieces such as message queuing, running code in a separate AppDomain, and finding the versions of assemblies in the GAC. Chapter 20, Numbers and Enumerations This chapter focuses on the numeric and enumeration 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. The display, conversion, and testing of enumeration types and recipes on using enumerations that consist of bit flags are also shown. In some cases, certain recipes are related. In these cases, the See Also section of the recipe as well as some text in the Discussion will note the relationships. ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: C#
 输入关键字,在本站1000多万海量源码库中尽情搜索: