C# 9.0: Covariant Return Types – Specify More Specific Return Types in Overridden Methods and Properties
In the previous blog posts you learned about different C# 9.0 features:
- Top-level statements
- Init-only properties
- Records
- Target-typed new expressions
- Improved Pattern Matching
- Pattern Matching in Switch Expressions
In this blog post, let's look at another very interesting feature of C# 9.0, the covariant return types.
(more…)