Skip to content

Instantly share code, notes, and snippets.

@lfreneda
Created November 8, 2012 23:13
Show Gist options
  • Save lfreneda/4042521 to your computer and use it in GitHub Desktop.
Save lfreneda/4042521 to your computer and use it in GitHub Desktop.
NerdLove
using System;
namespace NerdLove
{
public class Program
{
public static void Main(string[] args)
{
Love love = new Love();
You you = love;
Console.WriteLine(you);
}
}
public class You
{
public override string ToString()
{
return "<3";
}
}
public class Love
{
public static implicit operator You(Love love)
{
return new You();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment