You are previewing Microsoft .NET Framework 4.5 Quickstart Cookbook.
O'Reilly logo
Microsoft .NET Framework 4.5 Quickstart Cookbook

Book Description

Over 50 simple but incredibly effective recipes to get updated to exciting new features in .NET 4.5 Framework

  • Designed for the fastest jump into .NET 4.5, with a clearly designed roadmap of progressive chapters and detailed examples.

  • A great and efficient way to get into .NET 4.5 and not only understand its features but clearly know how to use them, when, how and why.

  • Covers Windows 8 XAML development, .NET Core (with Async/Await & reflection improvements), EF Code First & Migrations, ASP.NET, WF, and WPF

In Detail

With about ten years since its first release, Microsoft’s .NET Framework 4.5 is one of the most solid development technologies to create casual, business, or enterprise applications. It has evolved into a very stable framework and solid framework for developing applications, with a solid core, called the CLR (Common Language Runtime) Microsoft .NET Framework 4.5 includes massive changes and enables modern application and UI development.

"Microsoft .Net Framework 4.5 Quickstart Cookbook" aims to give you a run through the most exciting features of the latest version. You will experience all the flavors of .NET 4.5 hands on. The “How-to” recipes mix the right ingredients for a final taste of the most appetizing features and characteristics. The book is written in a way that enables you to dip in and out of the chapters.

The book is full of practical code examples that are designed to clearly exemplify the different features and their applications in real-world development. All the chapters and recipes are progressive and based on the fresh features on .NET Framework 4.5.

The book will begin by teaching you to build a modern UI application and improve it to make it Windows 8 Modern UI apps lifecycle model-compliant. You will create a portable library and throttle data source updating delays. Towards the end of the book, you will create you first Web API.

Table of Contents

  1. Microsoft .NET Framework 4.5 Quickstart Cookbook
    1. Table of Contents
    2. Microsoft .NET Framework 4.5 Quickstart Cookbook
    3. Credits
    4. About the Author
    5. Acknowledgment
    6. About the Reviewers
    7. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    8. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    9. 1. Windows Store Apps
      1. Introduction
      2. Building our first Windows Store app
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Adding a splash screen (and app tiles) to our app
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Improving the application to make it compliant with the Windows 8 lifecycle model
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. Improving our application tile
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      6. Improving our application with toast notifications
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    10. 2. Exploring the Top New Features of the CLR
      1. Introduction
      2. Creating a portable library
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Controlling the timeout in regular expressions
        1. How to do it...
        2. How it works...
        3. There'smore...
      4. Defining the culture for an application domain
        1. How to do it...
        2. How it works...
        3. There's more...
      5. Overriding the default reflection behavior
        1. How to do it...
        2. How it works...
        3. There's more...
      6. Using the new ZipArchive class
        1. How to do it...
        2. How it works...
        3. There's more...
      7. Understanding async and await in .NET 4.5
        1. How to do it...
        2. How it works...
        3. There's more...
      8. Using the new asynchronous file I/O operations
        1. How to do it...
        2. How it works...
        3. There's more...
        4. See also
    11. 3. Understanding the New Networking Capabilities
      1. Introduction
      2. Using the HttpClient and the new System.Net.Http namespaces
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    12. 4. Understanding the new features of Entity Framework 5.0
      1. Introduction
      2. Creating our first "Code First" application
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      3. Using Code First Migrations
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    13. 5. Understanding the New Features of ASP.NET
      1. Introduction
      2. Creating our first ASP.NET 4.5 Web Forms application
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Configuring our application to use unobtrusive validation
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Using Smart Tasks in the HTML editor
        1. Getting ready
        2. How to do it...
        3. How it works...
      5. Using WAI-ARIA support
        1. Getting ready
        2. How to do it...
        3. How it works...
      6. Using the Extract to User Control feature
        1. Getting ready
        2. How to do it...
        3. How it works...
      7. Using the Page Inspector feature
        1. Getting ready
        2. How to do it...
        3. How it works...
      8. Creating an asynchronous HTTP module
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    14. 6. Implementing WPF's new features
      1. Introduction
      2. Implementing asynchronous error handling with INotifyDataErrorInfo
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Using the WeakEvent pattern with WeakEventManager
        1. Getting ready
        2. How to do it...
        3. How it works...
      4. Using the dispatcher's new features
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. Data binding to static properties
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      6. Throttling data source update delays
        1. Getting ready
        2. How to do it...
        3. How it works...
      7. LiveShaping – repositioning elements when its bound data changes
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    15. 7. Applying the New WCF Features
      1. Introduction
      2. Using the asynchronous features of WCF
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      3. Using WebSockets
        1. Getting ready
        2. How to do it...
        3. How it works...
      4. Using Contract First development
        1. Getting ready
        2. How to do it...
        3. How it works...
    16. 8. Creating and Hosting Our First ASP.NET Web API
      1. Introduction
      2. Creating our first ASP.NET web API
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      3. Implementing a CRUD ASP.NET web API
        1. Getting ready
        2. How to do it...
        3. How it works...
      4. Setting up a self-hosted ASP.NET web API
        1. Getting ready
        2. How to do it...
        3. How it works...
    17. 9. Using the New Capabilities of WF
      1. Introduction
      2. Creating a state machine workflow
        1. Getting ready
        2. How to do it...
        3. How it works...
      3. Using the enhanced designer features
        1. Getting ready
        2. How to do it...
        3. How it works...
    18. A. Resources for Further Knowledge
      1. Resources for knowing more about .NET 4.5 and its tools
      2. Resources for knowing more about Windows 8
      3. Resources for knowing more about general development
    19. B. .NET 4.5 – Deployment Risks and Issues
      1. Introduction
      2. Risks of the in-place upgrade
      3. Platform targeting
      4. Other risks
    20. Index