Is there a short way to create the getter and setter in c#?
public string fname {get; set;}
Is there short hand to generate {get; se
When I type prop & TAB I get:
public int MyProperty
{
get; set;
}
Is there a way to set it up so it's all on one line so it looks like:
public int MyProperty { get; set;}
UPDATE!!! I figured it out.
Tools --> Options --> Text Editor --> C# --> Code Style --> Formatting --> Wrapping --> Put a checkmark in the "Leave block on a single line" option. It even uses the "get; set;" as an example.