Instant .NET 4.5 Extension Methods How-to - Shawn R. Mclean - E-Book

Instant .NET 4.5 Extension Methods How-to E-Book

Shawn R. Mclean

0,0
22,79 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

.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.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 46

Veröffentlichungsjahr: 2013

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Instant .NET 4.5 Extension Methods How-to
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Instant .NET 4.5 Extension Methods How-to
Your first extension method (Must know)
Getting ready
How to do it...
How it works...
Extension methods on string data types (Must know)
Getting ready
How to do it...
How it works...
There's more…
Extension methods on classes (Should know)
Getting ready
How to do it...
How it works...
There's more…
Chaining extension methods (Should know)
Getting ready
How to do it...
How it works...
Overloading extension methods (Should know)
Getting ready
How to do it...
How it works...
Overriding extension methods (Should know)
Getting ready
How to do it...
How it works...
Extension methods on interfaces (Should know)
Getting ready
How to do it...
How it works...
Extension methods on enumerables (Should know)
Getting ready
How to do it...
How it works...
There's more...
Extension methods on IQueryable (Become an expert)
Getting ready
How to do it...
How it works...
Extension methods with generics (Become an expert)
Getting ready
How to do it...
How it works...
Extension methods with lambda expressions (Become an expert)
Getting ready
How to do it...
How it works...
Structuring your project and best practices (Should know)
Getting ready
How to do it...
How it works...
Appendix – List of well-known extension libraries

Instant .NET 4.5 Extension Methods How-to

Instant .NET 4.5 Extension Methods How-to

Copyright © 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: April 2013

Production Reference: 1170413

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-84968-856-7

www.packtpub.com

Credits

Author

Shawn R. McLean

Reviewer

Wei Chung, Low

IT Content Commissioning Editor

James Jones

Commissioning Editor

Sharvari Tawde

Technical Editor

Worrell Lewis

Project Coordinator

Sherin Padayatty

Proofreader

Linda Morris

Production Coordinator

Shantanu Zagade

Cover Work

Shantanu Zagade

Cover Image

Sheetal Aute

About the Author

Shawn R. McLean is passionate about architecting and developing scalable mobile and web applications based on the Microsoft .NET platform using ASP.NET MVC, ASP.NET WebAPI, and C#, along with using open source frameworks. He is an advocate of software and builds engineering methodologies for a streamlined development process. Besides his love for software engineering, architecture, and design, he also focuses on artificial intelligence and has interest in researching on computer vision and machine learning.

In 2008, he was a gold medalist in the web design category of World Skills Jamaica and a Best of Nation awardee for World Skills International, 2009. In 2009, he was also a finalist for the Microsoft Imagine Cup software design competition in Egypt, where he was the team lead of four, successfully clearing three rounds in a competition of more than 15 teams from around the Central Caribbean. In 2010, he led his team to first place of the Imagine Cup Interoperability award in Poland. He is also the recipient of Jamaica’s Prime Minister’s Youth Awards, Governor General’s iBelieve award, the Gleaner award, and the Chamber of Commerce award for outstanding innovation in the field of technology and science.

He is currently employed by the University Information System Services division of Northern Caribbean University, where he is part of a software engineering team that builds student and learning management systems for universities and high schools. He is also the co-founder of Xormis, a start-up software engineering company that makes in-house mobile and web-based applications for commercial use.

I would like to thank my family and friends for giving me the space and time to work on this book.

About the Reviewer

Wei Chung, Low is a Business Intelligence Manager, a .NET developer, and a MCT, MCPD, MCITP, MCTS, MCSD.NET. He works with IPG MediaBrands (NYSE: IPG) at its Kuala Lumpur, Malaysia campus. He is also a member of PMI, certified as PMP. He started working on Microsoft .NET early in his career and has been involved in development, consultation, and corporate training in the areas of business intelligence, system integration, and virtualization. He has worked for the Bursa Malaysia (formerly Kuala Lumpur Stock Exchange) and Shell IT International previously, which gave him rich integration experiences across different platforms.

He strongly believes that a good system implementation delivers precious value to businesses, and integration of various systems across different platforms shall always be a part of it, just as diverse people from different cultures live together in harmony in most of the major cities.

www.PacktPub.com