Introducing C# 9: Covariant returns

added by DotNetKicks
10/12/2020 4:56:30 PM

389 Views

In May 20th 2020, Microsoft introduced C# 9, among the features announced, there is one that has not yet been talked about much: covariant returns. Usually in C# when we inherit from a class, it is possible to override a method if it is declared abstract or virtual but it is not possible to change the return type of this method.


0 comments