Reputation: 100308
Could you please tip how to properly name object construction approach where public proprieties values are being set on object creation?
For example,
SqlCommand command = new SqlCommand { Connection = connection, CommandType = CommandType.Text };
Upvotes: 0
Views: 127
Reputation: 27065
JPunyon is correct..
For further info see http://msdn.microsoft.com/en-us/library/bb384062.aspx
Upvotes: 1
Reputation: 39345
I believe these are called Object Initializers...
Upvotes: 8