Free Sample
+ Collection

.Net Framework 4.5 Expert Programming Cookbook

A.P. Rajshekhar

Over 50 engaging recipes for learning advanced concepts of .NET Framework 4.5
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849687423
Paperback276 pages

About This Book

  • 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, Silverlight,, and Entity Framework

Who This Book Is For

If you are a .NET developer and would like to learn the new features in .NET 4.5, then this book is just for you. ".Net Framework 4.5 Expert Programming Cookbook" gives developers with a basic to intermediate knowledge a high-level overview and clear understanding of what the .NET 4.5 Framework provides.

Table of Contents

Chapter 1: Core .NET Recipes
Implementing the validation logic using the Repository pattern
Creating a custom validation attribute by extending the validation data annotation
Using XML to generate a localized validation message
Extending the validation attribute for localization
Creating custom attributes
Processing custom attributes via reflection
Using asynchronous file I/O for directory-to-directory copy
Accessing JSON using dynamic programming
Chapter 2: Application Events and Windows Forms
Creating an event that can have generic values as payload
Creating a table layout that can dynamicallyadd or remove rows based on the size of the collection
Creating DataGridView dynamically
Creating a video player using DirectX and Windows Forms
Chapter 3: Threading and Parallel Programming
Creating a shared resource
Handling Producer-Consumer race conditions
Handling background threads in Windows Forms
Handling threads in WPF
Using parallel programming to make bulk image processing faster
Chaining two parallelized bulk image processing operations
Chapter 4: ASP.NET Recipes – I
Creating a user registration page using HTML5 controls
Saving a draft of a user registration page using HTML5 client storage
Binding objects to controls using strongly-typed data controls
Implementing communication between an ASPX page and a Silverlight application
Chapter 5: ADO.NET Recipes
Saving large files (BLOB) in MS SQL Server using ADO.NET
Retrieving large files (BLOB) from SQL Server using ADO.NET
Using transactions to maintain database consistency when saving multiple files
Using DataSet to modify custom XML configuration files
Chapter 6: WCF Recipes
Implementing custom binding in WCF
Creating a WCF REST service
Handling exceptions using FaultContract and FaultException
Uploading files using Stream
Securing a service using role-based security
Chapter 7: WPF Recipes
Implementing the Model and Repository patterns
Implementing View Model
Implementing View commands and binding data to View
Using the live data shaper for live sorting
Playing videos using MediaElement
Using Ribbon control to display the video player controls
Chapter 8: ASP.NET Recipes – II
Preventing cross-site injection using the anti-XSS library
Adding Google Map functionality using Map Helper
Third-party authentication of users using Google
Implementing unobtrusive validation
Chapter 9: Silverlight Recipes
Using Pivot control to present asset data
Accessing webcams
Using client-side storage for saving a draft of the user registration data
Chapter 10: Entity Framework Recipes
Joining two entities using LINQ
Uploading files using Entity Framework and stored procedures
Managing connections manually for long-running tasks
Using functions that return tables as return values

What You Will Learn

  • Create metadata-driven code, including properties, events, and custom attributes
  • Understand multi-threading, thread-safety, and the parallel framework extensions to avoid threading pitfalls in your Window Forms, WPF, and Silverlight applications
  • Implement .NET patterns in application design, assessing a given pattern’s fit in a given context and current state of .NET patterns
  • Create secured and REST based WCF services
  • Learn new controls such as Ribbon Control and live data shaper to customize your applications
  • Use advanced concepts of Application Events and Windows Forms to create a re-usable Window Forms component
  • Understand new features of ASP.Net websites to enable Google/Facebook SSO based authentication and add non-obstructive validation along with embedding maps in your websites

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.


Read More

Recommended for You