generics Getting started with generics

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Remarks

Generics allow you to define placeholders for exact types in definitions for classes, interfaces and/or methods.

Possible subtopics:

  • Class (and structure) generics
  • Interface generics
  • Method generics
  • Constraints
  • Covariance and contravariance

Availability

Generics became available with:

  • .NET Framework 2.0 (and version 2.0 of the compact framework).
  • Java in version 5.
  • Common Lisp since it was standardised ...


Got any generics Question?