.NET 4.0 Generics Beginner's Guide

Enhance the type safety of your code and create applications easily using Generics in the .NET 4.0 Framework with this book and ebook

.NET 4.0 Generics Beginner's Guide

Sudipta Mukherjee

Enhance the type safety of your code and create applications easily using Generics in the .NET 4.0 Framework with this book and ebook
Packt Subscription
$5.00
$9.99/m after first month
eBook
$5.00
RRP $29.99
Save 83%
Print + eBook
$49.99
RRP $49.99
What do I get with a Packt subscription?
  • Exclusive monthly discount - no contract
  • Unlimited access to entire Packt library of 6500+ eBooks and Videos
  • 120 new titles added every month, on new and emerging tech
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 subscription 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 subscription 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 subscription reader
$5.00
$5.00
$49.99
$9.99/m after first month
RRP $29.99
RRP $49.99
Subscription
eBook
Print + eBook
Subscribe Now

Frequently bought together


.NET 4.0 Generics Beginner's Guide Book Cover
.NET 4.0 Generics Beginner's Guide
$ 29.99
$ 5.00
WebGL Game Development Book Cover
WebGL Game Development
$ 26.99
$ 5.00
Buy 2 for $10.00
Save $46.98
Add to Cart

Book Details

ISBN 139781849690782
Paperback396 pages

Book Description

Generics were added as part of .NET Framework 2.0 in November 2005. Although similar to generics in Java, .NET generics do not apply type erasure but every object has unique representation at run-time. There is no performance hit from runtime casts and boxing conversions, which are normally expensive..NET offers type-safe versions of every classical data structure and some hybrid ones.

This book will show you everything you need to start writing type-safe applications using generic data structures available in Generics API. You will also see how you can use several collections for each task you perform. This book is full of practical examples, interesting applications, and comparisons between Generics and more traditional approaches. Finally, each container is bench marked on the basis of performance for a given task, so you know which one to use and when.

This book first covers the fundamental concepts such as type safety, Generic Methods, and Generic Containers. As the book progresses, you will learn how to join several generic containers to achieve your goals and query them efficiently using Linq. There are short exercises in every chapter to boost your knowledge.

The book also teaches you some best practices, and several patterns that are commonly available in generic code.

Some important generic algorithm definitions are present in Power Collection (an API created by Wintellect Inc.) that are missing from .NET framework. This book shows you how to use such algorithms seamlessly with other generic containers.

The book also discusses C5 collections. Java Programmers will find themselves at home with this API. This is the closest to JCF. Some very interesting problems are solved using generic containers from .NET framework, C5, and PowerCollection Algorithms - a clone of Google Set and Gender Genie for example!

Table of Contents

Chapter 2: Lists
Chapter 4: LINQ to Objects

What You Will Learn

  • How different kinds of generic listsare related
  • How to implement your own generic list
  • Query every kind of generic container alike with Linq Standard Query Operators
  • Augment .NET collections with general purpose algorithms available in C5 and PowerCollection
  • Build concurrent apps in breathing easy steps.
  • Find those algorithms you have been missing in .NET framework in PowerCollection and C5 API.
  • Learn how different generic collections/containers perform under benchmarking, and when to use one over another
  • Port your STL code blocks to .NET Generics which can be very handy if you are a veteran C++ developer and looking for an alternative in .NET world.

Authors

Table of Contents

Chapter 2: Lists
Chapter 4: LINQ to Objects

Book Details

ISBN 139781849690782
Paperback396 pages
Read More

Read More Reviews

Recommended for You

WebGL Game Development Book Cover
WebGL Game Development
$ 26.99
$ 5.00
Programming Microsoft Dynamics NAV Book Cover
Programming Microsoft Dynamics NAV
$ 35.99
$ 5.00
Visual SourceSafe 2005 Software Configuration Management in Practice Book Cover
Visual SourceSafe 2005 Software Configuration Management in Practice
$ 29.99
$ 5.00
Prezi HOTSHOT Book Cover
Prezi HOTSHOT
$ 26.99
$ 5.00
ReSharper Essentials Book Cover
ReSharper Essentials
$ 17.99
$ 5.00
Learning Pixelmator Book Cover
Learning Pixelmator
$ 14.99
$ 5.00