The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Object and Collection Initializers Feature in C# 3.0
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Jes HansenPosted Oct 21, 2008, 2:59 AM
The ID is a private field and it has no public setter, thus you cannot use object initialization, or am I missing something?