Skip to content

Instantly share code, notes, and snippets.

@v2m
Last active January 4, 2016 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v2m/8680864 to your computer and use it in GitHub Desktop.
Save v2m/8680864 to your computer and use it in GitHub Desktop.
using System;
interface IContainer
{
object Obj { set; }
}
struct P : IContainer
{
public object Obj { set { this.o = value; } }
object o;
static void Main(string[] args)
{
IContainer c = new P();
c.Obj = c;
var x = c.GetHashCode();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment