Created
March 29, 2018 15:51
-
-
Save RobertBouillon/90aa6a092b4691406900f4fe0be5c30b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Car { } | |
class Ford : Car { } | |
interface ITest | |
{ | |
Car Foo(); | |
} | |
class Covariance : ITest | |
{ | |
public Ford Foo() => new Ford(); | |
Car ITest.Foo() => Foo(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment