Alexian
Alexian

Reputation: 3

Shortcut in a constructor

I don't know how to explain properly, this is what I mean:

I have a class Car

Car car = new Car(model: "abc", engineModel: "abd")

I watched somebody when they write in the brackets they only write ("") and it pulls (model: "")

How do I do that?

Edit: Found it's functionality of ReSharper

Upvotes: 0

Views: 87

Answers (1)

Mo B.
Mo B.

Reputation: 5805

If you are using Visual Studio, you can start typing new Car(, then Intellisense will show you the constructor parameter names, so if you type m and tab, it will complete your input to model: .

Upvotes: 1

Related Questions