Created
November 8, 2012 23:13
-
-
Save lfreneda/4042521 to your computer and use it in GitHub Desktop.
NerdLove
This file contains 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
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