Manohari Jayachandran·Jul 2Advanced C# Generics: Contravariance, Custom Comparers and Real AbstractionsA previous post on TechStack blog covered the foundations of C# generics — generic classes, methods, basic constraints, and the five main…
InStackademicbySyed Ovais Akhtar·Jan 29Understanding Variance in Kotlin: Covariance, Contra-variance & Invariance ExplainedKotlin is a modern, type-safe language that powers Android apps and backend services alike. One of its powerful features is generics, which…
Android Expert·Dec 16, 2025The Hidden Logic of Types: Mastering Variance Beyond Kotlin’s GenericsUnpacking co-variance (out) and contra-variance (in) through Liskov Substitution in standard type hierarchies.
InDev GeniusbyAleksei Jegorov·Aug 24, 2025Java generics (in)variance.Developers create objects and their descendants or ancestors in this way.
Anup Singh·Aug 11, 2025C# Covariance & ContravarianceFive years ago I was asked about in/out in a C# interview and I totally blanked. This month it came up again—and this time I nailed it. If…