public static string operator +(Foo left, Bar right)
return "Foo is on the left";
public static string operator +(Bar left, Foo right)
return "Bar is on the left";
public static void Main()
Console.WriteLine(new Foo() + new Bar());
Console.WriteLine(new Bar() + new Foo());