Instant .NET 4.5 Extension Methods How-to

Utilize and harness the power of extension methods in your .NET applications

Instant .NET 4.5 Extension Methods How-to

Shawn R. McLean

Utilize and harness the power of extension methods in your .NET applications
Mapt Subscription
FREE
$29.99/m after trial
eBook
$14.00
RRP $19.99
Save 29%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$14.00
$29.99p/m after trial
RRP $19.99
Subscription
eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781849688567
Paperback52 pages

Book Description

.NET extension methods is an essential feature to know and understand for all .NET developers. Usage of extension methods is found in applications ranging from small to large scale enterprise systems built using the .NET framework. Create and use extension methods the correct way to save your development time and maintainability costs.

Instant .NET 4.5 Extension Methods How-to is a practical, hands-on guide that provides you with a number of clear, step-by-step exercises that will help you take advantage of the real power that is behind extension methods and gives you good knowledge of how to use them in your .NET applications.

This book covers how to create, write, and use different types of extension methods. It will take you through a number of clear, practical recipes that will help you take advantage of the power of extension methods in the quickest possible way.

You will also learn exactly how to create extension methods on strings, interfaces, classes such as IQueryable and IEnumerable, and so on. You will write them from scratch and then use them practically in your application. You will also learn the most suitable scenarios for using these extension methods.You will learn everything you need to know about creating your own extension methods and using them and other external extension methods.

Table of Contents

Chapter 1: Instant .NET 4.5 Extension Methods How-to
Your first extension method (Must know)
Extension methods on string data types (Must know)
Extension methods on classes (Should know)
Chaining extension methods (Should know)
Overloading extension methods (Should know)
Overriding extension methods (Should know)
Extension methods on interfaces (Should know)
Extension methods on enumerables (Should know)
Extension methods on IQueryable (Become an expert)
Extension methods with generics (Become an expert)
Extension methods with lambda expressions (Become an expert)
Structuring your project and best practices (Should know)
Appendix – List of well-known extension libraries

What You Will Learn

  • Extending primitive and complex types
  • Tricks and caveats of extending the string data type
  • Method chaining using extension methods
  • Extending interfaces while taking inheritance into consideration
  • Structuring your project to incorporate proper namespace convention when using extension methods
  • Knowing how and when to extend IEnumerable versus IQueryable for performance and optimization of queries
  • Structuring your project to incorporate proper namespace convention when using extension methods

Authors

Table of Contents

Chapter 1: Instant .NET 4.5 Extension Methods How-to
Your first extension method (Must know)
Extension methods on string data types (Must know)
Extension methods on classes (Should know)
Chaining extension methods (Should know)
Overloading extension methods (Should know)
Overriding extension methods (Should know)
Extension methods on interfaces (Should know)
Extension methods on enumerables (Should know)
Extension methods on IQueryable (Become an expert)
Extension methods with generics (Become an expert)
Extension methods with lambda expressions (Become an expert)
Structuring your project and best practices (Should know)
Appendix – List of well-known extension libraries

Book Details

ISBN 139781849688567
Paperback52 pages
Read More

Read More Reviews

Recommended for You

.NET 4.0 Generics Beginner's Guide Book Cover
.NET 4.0 Generics Beginner's Guide
$ 29.99
$ 21.00
Multithreading in C# 5.0 Cookbook Book Cover
Multithreading in C# 5.0 Cookbook
$ 29.99
$ 21.00
Windows Presentation Foundation 4.5 Cookbook Book Cover
Windows Presentation Foundation 4.5 Cookbook
$ 35.99
$ 25.20
.Net Framework 4.5 Expert Programming Cookbook Book Cover
.Net Framework 4.5 Expert Programming Cookbook
$ 29.99
$ 21.00
Visual Studio 2012 Cookbook Book Cover
Visual Studio 2012 Cookbook
$ 26.99
$ 18.90
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40