TalkIT was founded by IT expert David Ringsell with a simple mission: to provide effective training and elearning courses for developers and businesses to learn new skills quickly. As part of this commitment, we provide online training courses that are accessible on all devices, as well as bespoke courses delivered onsite or at our own premises. Read more...


Developing in C# - 08. Generics

Developing in C#  - 08. Generics
(1)
£4.20 - £4.99 per seat

Buy Now

Overview

  1. Since .NET 2.0, data types can be parameterised on the types of data they hold and manipulate – You can define generic classes, structs, interfaces, and delegates.
  2. Also, methods can be parameterised on the types of arguments they receive – You can define generic methods, to implement algorithms in a type-safe manner.
  3. The main benefit of generics:
  • Enable you to represent general data structures (e.g. collections) and general algorithms, more type-safe than object references.
  • Note: the .NET Framework class library defines a suite of generic collection classes (see System.Collections.Generic).

Lessons

  • Developing in C# - 8. Generics