Friday, March 13, 2009

Professional .NET 2.0 Generics (Programmer to Programmer)

Professional .NET 2.0 Generics (Programmer to Programmer)
Paperback: 408 pages
Publisher: WROX (October 17, 2005)
Language: English
ISBN-10: 0764559885
ISBN-13: 978-0764559884
Product Dimensions: 9.1 x 7.4 x 1 inches







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

From the Back Cover
Professional .NET 2.0 Generics

Generics 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 book
Techniques for using generics to improve the type-safety of your code
Steps on how to extend classes and introduce your own derivative generic types
A point-by-point breakdown of the guidelines for applying generics
Ways to achieve run-time efficiencies with generic types
Tips on how to work with generics in both J# and C++
How to extend and leverage BCL generic types
Approaches to using generics with serialization and remoting

Who this book is for

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

User Review:

Generics are one of the biggest advances introduced in .NET 2.0, and this book provides excellent coverage of the topic. As a diehard fan of C++ templates, I especially appreciated the careful discussion of the differences between templates and generics. There is plenty of introductory material here to help the reader unfamiliar with the basic concepts; but more advanced readers can also dig in to the chapters on the "inner workings" of generics, and on how C++ templates can interact with them. The book also provides a concise reference on the template classes supplied with the framework. Highly recommended.

Free Download:

No comments: