Skip to content

Instantly share code, notes, and snippets.

@mgravell
Created July 1, 2017 21:52
Show Gist options
  • Save mgravell/72b046a01455d5fe800fddde83efe974 to your computer and use it in GitHub Desktop.
Save mgravell/72b046a01455d5fe800fddde83efe974 to your computer and use it in GitHub Desktop.
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