Visual C# 2005: A Developer's Notebook
暫譯: Visual C# 2005:開發者筆記本

Jesse Liberty

  • 出版商: O'Reilly
  • 出版日期: 2005-05-01
  • 售價: $1,270
  • 貴賓價: 9.5$1,207
  • 語言: 英文
  • 頁數: 240
  • 裝訂: Paperback
  • ISBN: 059600799X
  • ISBN-13: 9780596007997
  • 相關分類: C#Visual C#
  • 已過版

買這商品的人也買了...

商品描述

Description:

In the three years since Microsoft made C# available, there have been lots of tweaks to the language. That's because C# is not only essential for making .NET work, it's a big way for Microsoft to attract millions of Java, C and C++ developers to the platform. And C# has definitely made some inroads. Because of its popularity among developers, the language received standardization from ECMA International, making it possible to port C# applications to other platforms.

To bolster its appeal, C# 2.0 has undergone some key changes as part of Visual Studio 2005 that will make development with .NET quicker and easier. The updated IDE is not due for official release until summer, but the C# 2.0 beta is available for those who want to take it for a spin and get up to speed.

That's precisely what Visual C# 2005: A Developer's Notebook allows you to do. There are some great new features in C# and this unique "all lab, no lecture" guide covers them all with 50 hands-on projects. Each project explores a new feature, with emphasis on changes that increase productivity, simplify programming tasks, and add functionality to applications.

C#'s component-based design combines the productivity of Microsoft's popular Visual Basic with the raw power of C++ for web-based applications. Many reviewers note a similarity between C# and Java--in fact, a new feature that took the Java development team five years to incorporate into Java is now available in C# 2.0. Called "generics", this feature enables developers to reuse and customize their existing code, so they can dramatically cut down the time it takes to develop new applications.

Visual C# 2005: A Developer's Notebook is full of no-nonsense code without the usual page-filling commentary. You'll find suggestions for further experimentation, links to on-line documentation, plus practical notes and warnings. The book also tells developers how to acquire, install and configure Visual Studio .NET 2005. Are you a coder to the core? Learn what C# 2.0 can do for you now.

 

Table of Contents:

The Developer's Notebook Series

Preface

Chapter 1. C# 2.0

     Create a Type-Safe List Using a Generic Collection

     Create Your Own Generic Collection

     Implement the Collection Interfaces

     Enumerate Using Generic Iterators

     Implement GetEnumerator with Complex Data Structures

     Simplify Your Code with Anonymous Methods

     Hide Designer Code with Partial Types

     Create Static Classes

     Express Null Values with Nullable Types

     Access Objects in the Global Namespace

     Limit Access Within Properties

     Gain Flexibility with Delegate Covariance and Contravariance

Chapter 2. Visual Studio 2005

     Configure and Save Your Developer Environment

     Configure Your Application

     Make the Editor Work for You

     Use Refactoring to Speed Revision of Your Code

     Use Code Snippets to Save Typing

     Examine Objects While Debugging Them

     Visualize XML Data

     Diagnose Exceptions

Chapter 3. Windows Applications

     Add Tool Strips to Your Application

     Allow Valid Input Only

     Create Auto-Complete Text Boxes

     Play Sounds

     Create Split Windows

     Create Data-Driven Forms

     Create Safe Asynchronous Tasks

     Put the Web in a Window

     Enable One-Click Deployment

Chapter 4. Web Applications

     Develop Web Apps Without IIS

     Provide Forms-Based Security Without Code

     Add Roles to ASP.NET Accounts

     Create Personalized Web Sites

     Personalize with Complex Types

     Add Anonymous Personalization to Your Site

     Let Users Personalize Your Site with Themes

     Unify Your Look and Feel with Master Pages

Chapter 5. Data

     Bind to Data Without Writing Code

     Create Detail Pages

     Create Master Detail Records

     Get Database Statistics

     Batch Updates to Improve Performance

     Bind to an XmlDataSource Control

     Improve XML Manipulation with XPathDocument

     Select Within XPathDocument Using XPath

Index

商品描述(中文翻譯)

描述:
自從微軟推出 C# 以來的三年中,這門語言經歷了許多調整。這是因為 C# 不僅對於 .NET 的運作至關重要,也是微軟吸引數百萬 Java、C 和 C++ 開發者進入該平台的重要方式。C# 確實在這方面取得了一些進展。由於其在開發者中的受歡迎程度,該語言獲得了 ECMA International 的標準化,使得 C# 應用程式能夠移植到其他平台。

為了增強其吸引力,C# 2.0 在 Visual Studio 2005 中進行了一些關鍵變更,這將使得使用 .NET 的開發變得更快、更簡單。更新的 IDE 預計在夏季正式發布,但 C# 2.0 的測試版已經提供給那些想要試用並快速上手的開發者。

這正是《Visual C# 2005: A Developer's Notebook》所能幫助你做到的。C# 中有一些很棒的新功能,而這本獨特的「全實驗,無講座」指南涵蓋了所有這些功能,並提供了 50 個實作專案。每個專案都探索了一個新功能,重點放在提高生產力、簡化編程任務和為應用程式增加功能的變更上。

C# 的組件化設計結合了微軟流行的 Visual Basic 的生產力與 C++ 的強大能力,適用於基於網頁的應用程式。許多評論者指出 C# 與 Java 之間的相似性——事實上,一個 Java 開發團隊花了五年時間才將的功能,如今在 C# 2.0 中已經可用。這個名為「泛型」的功能使開發者能夠重用和自定義現有代碼,從而顯著縮短開發新應用程式所需的時間。

《Visual C# 2005: A Developer's Notebook》充滿了不拖泥帶水的代碼,而沒有通常的填頁評論。你會發現進一步實驗的建議、在線文檔的鏈接,以及實用的註解和警告。本書還告訴開發者如何獲取、安裝和配置 Visual Studio .NET 2005。你是個核心程式設計師嗎?現在就來了解 C# 2.0 能為你做些什麼吧。

目錄:
開發者筆記系列
前言
第一章 C# 2.0
     使用泛型集合創建類型安全的列表
     創建自己的泛型集合
     實作集合介面
     使用泛型迭代器進行枚舉
     使用複雜數據結構實作 GetEnumerator
     使用匿名方法簡化代碼
     使用部分類型隱藏設計師代碼
     創建靜態類
     使用可空類型表示空值
     訪問全局命名空間中的對象
     限制屬性內的訪問
     通過委派的協變和逆變獲得靈活性

第二章 Visual Studio 2005
     配置並保存你的開發環境
     配置你的應用程式
     讓編輯器為你工作
     使用重構加速代碼修訂
     使用代碼片段節省輸入
     在調試時檢查對象
     可視化 XML 數據
     診斷異常

第三章 Windows 應用程式
     為你的應用程式添加工具條
     僅允許有效輸入
     創建自動完成文本框
     播放聲音
     創建分割窗口
     創建數據驅動的表單
     創建安全的異步任務
     在窗口中放置網頁
     啟用一鍵部署

第四章 網頁應用程式
     在沒有 IIS 的情況下開發網頁應用程式
     無需代碼提供基於表單的安全性
     為 ASP.NET 帳戶添加角色
     創建個性化的網站
     使用複雜類型進行個性化
     為你的網站添加匿名個性化
     讓用戶使用主題個性化你的網站
     使用母版頁面統一外觀和感覺

第五章 數據
     無需編寫代碼即可綁定數據
     創建詳細頁面
     創建主詳細記錄
     獲取數據庫統計信息
     批量更新以提高性能
     綁定到 XmlDataSource 控制項
     使用 XPathDocument 改善 XML 操作
     使用 XPath 在 XPathDocument 中選擇

索引

最後瀏覽商品 (20)