Professional .NET 2.0 Generics

Professional .NET 2.0 Generics

3.71 (7 ratings by Goodreads)
By (author) 

List price: US$39.98

Currently unavailable

Add to wishlist

AbeBooks may have this title (opens in new window).

Try AbeBooks


The power and elegance of generic types have long been acknowledged. Generics allow developers to parameterize data types much like you would parameterize a method. This brings a new dimension of reusability to your types without compromising expressiveness, type-safety, or efficiency. Now .NET generics makes this power available to all .NET developers. By introducing generic concepts directly into the Common Language Runtime (CLR), Microsoft has also created the first language-independent generics implementation. The result is a solution that allows generic types to be leveraged by all the languages of the .NET platform.This book explores all aspects of the .NET generics implementation, covering everything from fundamental generic concepts, to the elements of generic syntax, to a broader view of how and when you might apply generics. It digs into the details associated with creating and consuming your own generic classes, structures, methods, delegates, and interfaces, examining all the nuances associated with leveraging each of these language constructs.
The book also looks at guidelines for working with generic types, the performance gains achieved with generics, the new generic container libraries (BCL and third party), and key aspects of the underlying .NET implementation. For those transitioning from C++, the book provides an in-depth look at the similarities and differences between templates and .NET generics. It also explores the syntactic variations associated with using generics with each of the .NET languages, including C#, Visual Basic, J#, and C++.
show more

Out of ideas for the holidays?

Visit our Gift Guides and find our recommendations on what to get friends and family during the holiday season. Shop now .

Product details

  • Online resource | 408 pages
  • 188 x 231.1 x 25.4mm | 612.36g
  • Hungry Minds Inc,U.S.
  • Foster City, United States
  • English
  • 0764559885
  • 9780764559884

Back cover copy

Professional .NET 2.0 GenericsGenerics represent one of the most compelling additions to the .NET platform, bringing a new dimension of type-safety, expressiveness, and performance to your data types. Professional .NET 2.0 Generics provides a detailed examination of all the facets of what you can achieve through applying generics. This includes both conceptual and syntactic explorations of generic classes, methods, interfaces, and delegates, as well as all the rules that govern their creation and consumption. The book provides comprehensive information on the new BCL generic types and the Power Collections library. It also looks at some of the broader generic topics, including generic guidelines, a comparison with C++ templates, and the underlying details of the .NET generics implementation.What you will learn from this bookTechniques for using generics to improve the type-safety of your codeSteps on how to extend classes and introduce your own derivative generic typesA point-by-point breakdown of the guidelines for applying genericsWays to achieve run-time efficiencies with generic typesTips on how to work with generics in both J# and C++How to extend and leverage BCL generic typesApproaches to using generics with serialization and remotingWho this book is forThis book is for Professional VB.NET and C# programmers and architects who may be new to generics but have strong Microsoft coding skills.Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.
show more

Table of contents

Acknowledgments. Introduction. Chapter 1: Generics 101. Chapter 2: Valuing Type Safety. Chapter 3: Generics != Templates. Chapter 4: Generic Classes. Chapter 5: Generic Methods. Chapter 6: Generic Delegates. Chapter 7: Generic Constraints. Chapter 8: BCL Generics. Chapter 9: Reflection, Serialization, and Remoting. Chapter 10: Generics Guidelines. Chapter 11: Under the Hood. Chapter 12: Using Generics with C++. Chapter 13: Using Generics with J#. Chapter 14: Power Collections. Index.
show more

About Tod Golding

Tod Golding has 20 years of experience as a software developer, lead architect, and development manager for organizations engaged in the delivery of large-scale commercial and internal solutions. He has an extensive background leveraging .NET, J2EE, and Windows DNA technologies, which has allowed him to become equally skilled with C#, Java, and C++. Tod has worked and consulted at a variety of companies, including stints with Microsoft and Borland. Tod has a B.S. in Computer Science from California State University, Sacramento. He started his writing career as a journalist for the Sacramento Bee daily newspaper. Prior to this book, he was also a contributing author for the XML Programming Bible, another Wiley publication. Tod currently resides in Sacramento, California, where he owns and operates Blue Puma Software.
show more

Rating details

7 ratings
3.71 out of 5 stars
5 29% (2)
4 29% (2)
3 29% (2)
2 14% (1)
1 0% (0)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X