Invalid Code class Foo { public string foo { get; set; } } void main () { var foo = new Foo () { bar = "foo" }; }