Skip to content

Instantly share code, notes, and snippets.

@RobertBouillon
Created March 29, 2018 15:51
Show Gist options
  • Save RobertBouillon/90aa6a092b4691406900f4fe0be5c30b to your computer and use it in GitHub Desktop.
Save RobertBouillon/90aa6a092b4691406900f4fe0be5c30b to your computer and use it in GitHub Desktop.
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