Professional .NET 2.0 generics
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 gene...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Indianapolis, Ind. : Chichester :
Wiley ; John Wiley [distributor]
2005.
|
Edición: | 1st edition |
Colección: | Programmer to programmer Professional .NET 2.0 generics
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627229706719 |
Tabla de Contenidos:
- Cross-Language SupportDebugging; Mix and Match Nirvana; Summary; Chapter 4: Generic Classes; Parameterizing Types; Inheritance; Fields; Methods; Nested Classes; Consuming Generic Classes; The Default Keyword; System. Nullable; Accessing Type Info; Indexers, Properties, and Events; Generic Structs; Generic Interfaces; Summary; Chapter 5: Generic Methods; The Basics; A Deeper Look; Apply Constraints; Type Parameter Names; Overloading Generic Methods; Overriding Generic Methods; Type Inference; Generic Methods and Delegates; Type-Safe Database Access Example; Summary
- Chapter 6: Generic DelegatesDelegate Basics; Adding Generics to the Equation; Event Handling; Generic Delegates with Generic Methods; Delegates in the Framework; Type Coercion; Applying Constraints; Delegates and Anonymous Methods; Summary; Chapter 7: Generic Constraints; Overview; Constraint Types; Boxing and Constraints; Using Multiple Constraints; Generic Delegate and Method Constraints; Inheritance and Constraints; Are Generics Generic?; Summary; Chapter 8: BCL Generics; Motivation; The Big Picture; Generic Collection Classes; Testing Equality; Null Collection Elements; More to Come
- SummaryChapter 9: Reflection, Serialization, and Remoting; Reflection; Serialization; Remoting; Summary; Chapter 10: Generics Guidelines; An Evolving List; Defining Guidelines; Organization; Identifying Generic Opportunities; Balancing Readability with Expressiveness; Using BCL Generic Types; Applying Constraints; The Kitchen Sink; Summary; Chapter 11: Under the Hood; Overview; Assumptions; High-Level Goals; IL Representation of Generic Types; Specialization and Sharing; Exact Run-Time Types; Support for Polymorphic Recursion; NGen and Generic Types; Performance; Memory Footprint
- Backward CompatibilitySummary; Chapter 12: Using Generics with C++; Templates or Generics?; Blurring the Lines; No Limits; Generic Classes in C++; Generic Methods in C++; Generic Interfaces in C++; Constraints; Generic Delegates in C++; Mixing Generics and Templates; STL.NET; Summary; Chapter 13: Using Generics with J#; J# Generic Limitations; Migrating from Java Generics; Consuming Generic Types; Leveraging Cross-Language Support; Working with Interfaces; Complying with Constraints; Calling Generic Methods; Java Type Arguments; Calling Generic Delegates; Arrays of Generic Types; Summary
- Chapter 14: Power Collections