C# Generics

C# Generics


Introduction Infrastructure for Generics Generic Types and Inheritance Contravariant and Covariant Generic Types Verifiability and Constraints Generics is mechanism offered by the common language runtime (CLR) and programming languages that provides one more form of code reuse : algorithm reuse Microsoft design guidelines that generic parameter variables should either be called T or least start … Continue reading C# Generics

Advertisements

Design Patterns Part – 2


Abstract Factory A factory class helps us to centralize the creation of classes and types. Abstract factory helps us to bring uniformity between related factory patterns which leads more simplified interface for the client. Abstract factory expands on the basic factory pattern. Abstract factory helps us to unite similar factory pattern classes in to one … Continue reading Design Patterns Part – 2

Generic Programming in .Net 4.0


Generic Programming is a methodology for the development of reusable software libraries and API's which are highly efficient and composable. The Generic Programming helps develop multiple libraries which can be combined seamlessly without any modification to any of the interface for e.g. In STL Algorithms are combined easily to work with containers without any modification … Continue reading Generic Programming in .Net 4.0