Created
July 1, 2017 21:52
-
-
Save mgravell/72b046a01455d5fe800fddde83efe974 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
interface ISomeInterface | |
{ | |
string Foo { get; set; } | |
} | |
class CloneHell : ISomeInterface | |
{ | |
private readonly EvilTwist evil; | |
CloneHell(EvilTwist evil) | |
{ | |
this.evil = evil; | |
} | |
string ISomeInterface.Foo | |
{ | |
get { return evil.Mwahaha; } | |
set { evil.Mwahaha = value; } | |
} | |
} | |
class EvilTwist | |
{ | |
public string Mwahaha { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment