public FooBar foo(int bar) { if(bar == 0) { return new FooBar(1); }else{ System.Console.Write("HelloWorld"); } }