C# Language Property Initialization during object instantiation


Example

Properties can be set when an object is instantiated.

var redCar = new Car 
{
    Wheels = 2,
    Year = 2016,
    Color = Color.Red
};