I'm currently playing around with the Orcas Beta 2 and C# 3.0. As I'm experimenting with the new object initialization feature in C#, I'm wondering which coding style will be applicable and will prevail.
So here is the style from the C# 3.0 specification:
Project project =
new Project
{ VersioningType =
"SqlServerVersionsTable", DatabaseType =
"SqlServer" };
But I'm not sure if this will be the best choice most of the time. So here some other styles to vote for:
Project project =
new Project
{
VersioningType =
"SqlServerVersionsTable", DatabaseType =
"SqlServer"
};
or
Project project =
new Project
{
VersioningType =
"SqlServerVersionsTable",
DatabaseType =
"SqlServer"
};
or (my favorite for now)
Project project =
new Project
{
VersioningType =
"SqlServerVersionsTable",
DatabaseType =
"SqlServer"
};
The time will tell which version really will be used by the majority of the developers.