O'Reilly logo
  • Sriram Parthasarathy thinks this is interesting:

 ShoppingCart cart = new ShoppingCart(calc) { Products = products };

From

Cover of Pro ASP.NET MVC 5, Fifth Edition

Note

Automatic properties and object initialization. If the constructor did not take any parameters the initialization would be ShoppingCart cart = new ShoppingCart { Products = products};