Visual C# 2005: A Developer's Notebook

Book 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.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 2005. Are you a coder to the core? Learn what C# 2.0 can do for you now.

Publisher resources

View/Submit Errata

Table of contents

  1. A Note Regarding Supplemental Files
  2. The Developer’s Notebook Series
    1. Notebooks Are...
    2. Notebooks Aren’t...
    3. Organization
  3. Preface
    1. Who This Book Is For
    2. How This Book Is Organized
    3. Where Can I Learn More?
    4. What You Need to Use This Book
    5. Conventions Used in This Book
    6. Using Code Examples
    7. I’d Like to Hear from You
    8. Comments and Questions
    9. Safari Enabled
    10. Acknowledgments
    11. Dedication
  4. 1. C# 2.0
    1. 1.1. Create a Type-Safe List Using a Generic Collection
      1. 1.1.1. How do I do that?
      2. 1.1.2. What just happened?
      3. 1.1.3. What about...
      4. 1.1.4. Where can I learn more?
    2. 1.2. Create Your Own Generic Collection
      1. 1.2.1. How do I do that?
      2. 1.2.2. What just happened?
      3. 1.2.3. What about...
      4. 1.2.4. Where can I learn more?
    3. 1.3. Implement the Collection Interfaces
      1. 1.3.1. How do I do that?
      2. 1.3.2. What just happened?
      3. 1.3.3. What about . . .
      4. 1.3.4. Where can I learn more?
    4. 1.4. Enumerate Using Generic Iterators
      1. 1.4.1. How do I do that?
      2. 1.4.2. What just happened?
      3. 1.4.3. What about...
      4. 1.4.4. Where can I learn more?
    5. 1.5. Implement GetEnumerator with Complex Data Structures
      1. 1.5.1. How do I do that?
      2. 1.5.2. What just happened?
      3. 1.5.3. What about...
      4. 1.5.4. Where can I learn more?
    6. 1.6. Simplify Your Code with Anonymous Methods
      1. 1.6.1. How do I do that?
      2. 1.6.2. What about . . .
      3. 1.6.3. Where can I learn more?
    7. 1.7. Hide Designer Code with Partial Types
      1. 1.7.1. How do I do that?
      2. 1.7.2. What about . . .
      3. 1.7.3. Where can I learn more?
    8. 1.8. Create Static Classes
      1. 1.8.1. How do I do that?
      2. 1.8.2. What about . . .
      3. 1.8.3. Where can I learn more?
    9. 1.9. Express Null Values with Nullable Types
      1. 1.9.1. How do I do that?
      2. 1.9.2. What just happened?
      3. 1.9.3. What about...
      4. 1.9.4. Where can I learn more?
    10. 1.10. Access Objects in the Global Namespace
      1. 1.10.1. How do I do that?
      2. 1.10.2. What just happened?
      3. 1.10.3. What about . . .
      4. 1.10.4. Where can I learn more?
    11. 1.11. Limit Access Within Properties
      1. 1.11.1. How do I do that?
      2. 1.11.2. What just happened?
      3. 1.11.3. What about . . .
      4. 1.11.4. Where can I learn more?
    12. 1.12. Gain Flexibility with Delegate Covariance and Contravariance
      1. 1.12.1. How do I do that?
      2. 1.12.2. What just happened?
      3. 1.12.3. What about . . .
      4. 1.12.4. Where can I learn more?
  5. 2. Visual Studio 2005
    1. 2.1. Configure and Save Your Developer Environment
      1. 2.1.1. How do I do that?
        1. 2.1.1.1. Importing the settings you saved
      2. 2.1.2. What about...
      3. 2.1.3. Where can I learn more?
    2. 2.2. Configure Your Application
      1. 2.2.1. How do I do that?
      2. 2.2.2. What just happened?
      3. 2.2.3. What about...
      4. 2.2.4. Where can I learn more?
    3. 2.3. Make the Editor Work for You
      1. 2.3.1. How do I do that?
        1. 2.3.1.1. Change your code
        2. 2.3.1.2. Use IntelliSense to complete your statement
        3. 2.3.1.3. Find compile errors before you compile
        4. 2.3.1.4. Use bookmarks to simplify navigation
        5. 2.3.1.5. Dock windows where you want them
        6. 2.3.1.6. Simplify actions with smart tags
      2. 2.3.2. What about . . .
      3. 2.3.3. Where can I learn more?
      4. 2.3.4. Where can I learn more?
    4. 2.4. Use Refactoring to Speed Revision of Your Code
      1. 2.4.1. How do I do that?
        1. 2.4.1.1. Change a method name
        2. 2.4.1.2. Change a parameter name
        3. 2.4.1.3. Factor out methods
        4. 2.4.1.4. Protect a field
      2. 2.4.2. What about . . .
      3. 2.4.3. Where can I learn more?
    5. 2.5. Use Code Snippets to Save Typing
      1. 2.5.1. How do I do that?
      2. 2.5.2. What just happened?
      3. 2.5.3. What about...
      4. 2.5.4. Where can I learn more?
    6. 2.6. Examine Objects While Debugging Them
      1. 2.6.1. How do I do that?
      2. 2.6.2. What about . . .
      3. 2.6.3. Where can I learn more?
    7. 2.7. Visualize XML Data
      1. 2.7.1. How do I do that?
      2. 2.7.2. What about . . .
      3. 2.7.3. Where can I learn more?
    8. 2.8. Diagnose Exceptions
      1. 2.8.1. How do I do that?
      2. 2.8.2. What about...
      3. 2.8.3. Where can I learn more?
  6. 3. Windows Applications
    1. 3.1. Add Tool Strips to Your Application
      1. 3.1.1. How do I do that?
      2. 3.1.2. What about...
      3. 3.1.3. Where can I learn more?
    2. 3.2. Allow Valid Input Only
      1. 3.2.1. How do I do that?
      2. 3.2.2. What about . . .
      3. 3.2.3. Where can I learn more?
    3. 3.3. Create Auto-Complete Text Boxes
      1. 3.3.1. How do I do that?
      2. 3.3.2. What just happened?
      3. 3.3.3. What about . . .
      4. 3.3.4. Where can I learn more?
    4. 3.4. Play Sounds
      1. 3.4.1. How do I do that?
      2. 3.4.2. What about...
      3. 3.4.3. Where can I learn more?
    5. 3.5. Create Split Windows
      1. 3.5.1. How do I do that?
      2. 3.5.2. What about...
      3. 3.5.3. Where can I learn more?
    6. 3.6. Create Data-Driven Forms
      1. 3.6.1. How do I do that?
      2. 3.6.2. What about...
      3. 3.6.3. Where can I learn more?
    7. 3.7. Create Safe Asynchronous Tasks
      1. 3.7.1. How do I do that?
      2. 3.7.2. What about...
      3. 3.7.3. Where can I learn more?
    8. 3.8. Put the Web in a Window
      1. 3.8.1. How do I do that?
      2. 3.8.2. What about...
      3. 3.8.3. Where can I learn more?
    9. 3.9. Enable One-Click Deployment
      1. 3.9.1. How do I do that?
      2. 3.9.2. What about...
      3. 3.9.3. Where can I learn more?
  7. 4. Web Applications
    1. 4.1. Develop Web Apps Without IIS
      1. 4.1.1. How do I do that?
      2. 4.1.2. What just happened?
      3. 4.1.3. What about...
      4. 4.1.4. Where can I learn more?
    2. 4.2. Provide Forms-Based Security Without Code
      1. 4.2.1. How do I do that?
        1. 4.2.1.1. Set up the application database
        2. 4.2.1.2. Create a folder as a virtual directory; set its security to Forms
        3. 4.2.1.3. Create the new web site
        4. 4.2.1.4. Add login controls
        5. 4.2.1.5. Verify that the user database is updated
        6. 4.2.1.6. Create the Welcome page
        7. 4.2.1.7. Create the Login page
      2. 4.2.2. What about . . .
      3. 4.2.3. Where can I learn more?
    3. 4.3. Add Roles to ASP.NET Accounts
      1. 4.3.1. How do I do that?
      2. 4.3.2. What just happened?
      3. 4.3.3. What about . . .
      4. 4.3.4. Where can I learn more?
    4. 4.4. Create Personalized Web Sites
      1. 4.4.1. How do I do that?
      2. 4.4.2. What about...
      3. 4.4.3. Where can I learn more?
    5. 4.5. Personalize with Complex Types
      1. 4.5.1. How do I do that?
      2. 4.5.2. What about...
      3. 4.5.3. Where can I learn more?
    6. 4.6. Add Anonymous Personalization to Your Site
      1. 4.6.1. How do I do that?
      2. 4.6.2. What about...
      3. 4.6.3. Where can I learn more?
    7. 4.7. Let Users Personalize Your Site with Themes
      1. 4.7.1. How do I do that?
        1. 4.7.1.1. Create the test site
        2. 4.7.1.2. Organize site themes and skins
        3. 4.7.1.3. Enable themes and skins
        4. 4.7.1.4. Specify themes
      2. 4.7.2. What about...
      3. 4.7.3. Where can I learn more?
    8. 4.8. Unify Your Look and Feel with Master Pages
      1. 4.8.2. How do I do that?
        1. 4.8.2.1. Create a new web site and add a master page
        2. 4.8.2.2. Design the master page
        3. 4.8.2.3. Add content pages that use the master page
      2. 4.8.3. What about...
      3. 4.8.4. Where can I learn more?
  8. 5. Data
    1. 5.1. Bind to Data Without Writing Code
      1. 5.1.1. How do I do that?
      2. 5.1.2. What about...
      3. 5.1.3. Where can I learn more?
    2. 5.2. Create Detail Pages
      1. 5.2.1. How do I do that?
      2. 5.2.2. What just happened?
      3. 5.2.3. What about . . .
      4. 5.2.4. Where can I learn more?
    3. 5.3. Create Master Detail Records
      1. 5.3.1. How do I do that?
      2. 5.3.2. What just happened?
      3. 5.3.3. What about...
      4. 5.3.4. Where can I learn more?
    4. 5.4. Get Database Statistics
      1. 5.4.1. How do I do that?
      2. 5.4.2. What just happened?
      3. 5.4.3. What about . . .
      4. 5.4.4. Where can I learn more?
    5. 5.5. Batch Updates to Improve Performance
      1. 5.5.1. How do I do that?
      2. 5.5.2. What just happened?
      3. 5.5.3. Where can I learn more?
    6. 5.6. Bind to an XmlDataSource Control
      1. 5.6.1. What just happened?
      2. 5.6.2. What about...
      3. 5.6.3. Where can I learn more?
    7. 5.7. Improve XML Manipulation with XPathDocument
      1. 5.7.1. How do I do that?
      2. 5.7.2. What just happened?
      3. 5.7.3. What about...
      4. 5.7.4. Where can I learn more?
    8. 5.8. Select Within XPathDocument Using XPath
      1. 5.8.1. How do I do that?
      2. 5.8.2. What just happened?
      3. 5.8.3. What about...
      4. 5.8.4. Where can I learn more?
  9. About the Author
  10. Colophon
  11. Copyright

Product information

  • Title: Visual C# 2005: A Developer's Notebook
  • Author(s): Jesse Liberty
  • Release date: April 2005
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9780596007997