Is a way to set the properties of an object in a block using C#, similar to how you write an object initializer?
For example:
Button x = new Button(){
Text = "Button",
BackColor = Color.White
};
Is there a syntax similar to this that can be properties after the object has been created?
For example:
Button x = new Button();
x{
Text = "Button",
BackColor = Color.White
};