C# 6.0 Initialize an Auto-Implemented Property

suggest change

Create a property with getter and/or setter and initialize all in one line:

public string Foobar { get; set; } = "xyz";

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents