Foo foo = new Foo{ Bar = "baz", Qux = true };
...is not unlike...
Foo foo = new Foo(); foo.Bar = "baz"; foo.Qux = true;
No comments:
Post a Comment