You are previewing .NET Framework 4.5 Expert Programming Cookbook.
O'Reilly logo
.NET Framework 4.5 Expert Programming Cookbook

Book Description

Over 50 engaging recipes for learning advanced concepts of .Net framework 4.5

Explores the advanced features of core .Net concepts in step-by-step detail Understand great ways to enhance your website by securing against cross-site scripting attacks, enabling third party authentications, and embedding maps Covers interesting real world projects with ASP.net, Silverlight, ADO.net, and Entity Framework

In Detail

.Net is an architecture neutral and programming language agnostic framework that caters to all requirements, varying from business solutions to multiplayer online 3D games. Version 4.5 added many new features to help with the development of robust and user-friendly solutions. This book will teach you the new features as well as the advanced concepts of different .Net components.".Net Framework 4.5 Expert Programming Cookbook"will teach you about the advanced concepts and new features of the core framework, Window Forms, threading, and parallel programming, ASP.Net, Silverlight, WCF, WPF, ADO.Net, and Entity Framework using a real life problem/solution approach with a hands-on style.This book takes a hands-on approach in teaching you how to use the new as well as advanced features of the .Net framework 4.5. Each topic will teach you how to use a specific feature of .Net to solve a real world problem or scenario. You will learn how to use metadata driven programming, creating custom events with payloads, adding parallel constructs to your applications, using strict data bound controls in ASP.Net, enabling third party authentication and embedding maps, among many other key skills.

Table of Contents

  1. .NET Framework 4.5 Expert Programming Cookbook
    1. Table of Contents
    2. .NET Framework 4.5 Expert Programming Cookbook
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
          1. Support files, eBooks, discount offers and more
            1. Why Subscribe?
            2. Free Access for Packt account holders
            3. Instant Updates on New Packt Books
    7. 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
    8. 1. Core .NET Recipes
      1. Introduction
      2. Implementing the validation logic using the Repository pattern
        1. How to do it...
        2. How it works...
      3. Creating a custom validation attribute by extending the validation data annotation
        1. How to do it...
        2. How it works...
        3. See also
      4. Using XML to generate a localized validation message
        1. How to do it...
        2. How it works...
      5. Extending the validation attribute for localization
        1. How to do it...
        2. How it works...
      6. Creating custom attributes
        1. How to do it...
        2. How it works...
      7. Processing custom attributes via reflection
        1. How to do it...
        2. How it works...
        3. There's more...
      8. Using asynchronous file I/O for directory-to-directory copy
        1. How to do it...
        2. How it works...
      9. Accessing JSON using dynamic programming
        1. How to do it...
        2. How it works...
    9. 2. Application Events and Windows Forms
      1. Introduction
      2. Creating an event that can have generic values as payload
        1. How to do it...
        2. How it works...
      3. Creating a table layout that can dynamicallyadd or remove rows based on the size of the collection
        1. How to do it...
        2. How it works...
      4. Creating DataGridView dynamically
        1. How to do it...
        2. How it works...
        3. See also
      5. Creating a video player using DirectX and Windows Forms
        1. How to do it...
        2. How it works...
    10. 3. Threading and Parallel Programming
      1. Introduction
      2. Creating a shared resource
        1. How to do it...
        2. How it works...
      3. Handling Producer-Consumer race conditions
        1. How to do it...
        2. How it works...
      4. Handling background threads in Windows Forms
        1. How to do it...
        2. How it works…
      5. Handling threads in WPF
        1. How to do it…
        2. How it works…
      6. Using parallel programming to make bulk image processing faster
        1. How to do it…
        2. How it works…
      7. Chaining two parallelized bulk image processing operations
        1. How to do it…
        2. How it works…
    11. 4. ASP.NET Recipes – I
      1. Introduction
      2. Creating a user registration page using HTML5 controls
        1. How to do it...
        2. How it works...
      3. Saving a draft of a user registration page using HTML5 client storage
        1. How to do it...
        2. How it works...
      4. Binding objects to controls using strongly-typed data controls
        1. How to do it...
        2. How it works...
      5. Implementing communication between an ASPX page and a Silverlight application
        1. How to do it...
        2. How it works...
    12. 5. ADO.NET Recipes
      1. Introduction
      2. Saving large files (BLOB) in MS SQL Server using ADO.NET
        1. How to do it...
        2. How it works...
      3. Retrieving large files (BLOB) from SQL Server using ADO.NET
        1. How to do it...
        2. How it works...
      4. Using transactions to maintain database consistency when saving multiple files
        1. How to do it...
        2. How it works...
      5. Using DataSet to modify custom XML configuration files
        1. How to do it...
        2. How it works...
    13. 6. WCF Recipes
      1. Introduction
      2. Implementing custom binding in WCF
        1. How to do it...
        2. How it works...
      3. Creating a WCF REST service
        1. How to do it...
        2. How it works...
        3. There's more...
      4. Handling exceptions using FaultContract and FaultException
        1. How to do it...
        2. How it works...
      5. Uploading files using Stream
        1. How to do it...
        2. How it works...
      6. Securing a service using role-based security
        1. How to do it...
        2. How it works…
    14. 7. WPF Recipes
      1. Introduction
      2. Implementing the Model and Repository patterns
        1. How to do it...
        2. How it works...
      3. Implementing View Model
        1. How to do it...
        2. How it works...
      4. Implementing View commands and binding data to View
        1. How to do it...
        2. How it works...
      5. Using the live data shaper for live sorting
        1. How to do it...
        2. How it works...
      6. Playing videos using MediaElement
        1. How to do it...
        2. How it works...
      7. Using Ribbon control to display the video player controls
        1. How to do it...
        2. How it works...
    15. 8. ASP.NET Recipes – II
      1. Introduction
      2. Preventing cross-site injection using the anti-XSS library
        1. How to do it...
        2. How it works...
      3. Adding Google Map functionality using Map Helper
        1. Getting ready
        2. How to do it...
        3. How it works...
      4. Third-party authentication of users using Google
        1. How to do it...
        2. How it works...
      5. Implementing unobtrusive validation
        1. How to do it...
        2. How it works...
    16. 9. Silverlight Recipes
      1. Introduction
      2. Using Pivot control to present asset data
        1. How to do it...
        2. How it works...
      3. Accessing webcams
        1. How to do it...
        2. How it works...
      4. Using client-side storage for saving a draft of the user registration data
        1. How to do it...
        2. How it works...
    17. 10. Entity Framework Recipes
      1. Introduction
      2. Joining two entities using LINQ
        1. How to do it...
        2. How it works...
      3. Uploading files using Entity Framework and stored procedures
        1. How to do it...
        2. How it works...
      4. Managing connections manually for long-running tasks
        1. How to do it...
        2. How it works...
      5. Using functions that return tables as return values
        1. How to do it...
        2. How it works...
    18. Index