FloatLeft
FloatLeft

Reputation: 1337

Named Parameters in C# 4 and Intellisense

Am I right in saying there is no Intellisense for C# 4 named parameters in Visual Studio 2010.

For example if I have the following method signature:

public static List<Person> GetPerson(string personId = null, string postCode = null, string lastName = null)

I would have thought I'd get Intellisense as I typed in the parameter names in the method call.

List<Person> people = GetPersons(personId : "abc", [Intellisense appear as I type p..] 

Or is this not possible because Intellisense would get in the way if you were specifying parameters by position?

Upvotes: 0

Views: 651

Answers (2)

Nathan Anderson
Nathan Anderson

Reputation: 6878

Something might have messed with your intellisence settings, see this post:

http://blog.meidianto.com/2010/05/10/vs2010-tips-5-no-intellisense-in-visual-studio-2010-fix-it-now/

If your problems persist, attempt a repair or reinstall of Visual Studio.

Upvotes: 1

Shekhar_Pro
Shekhar_Pro

Reputation: 18430

No you are not right....I dont know what are you saying but they did show up for me.

enter image description here

Upvotes: 4

Related Questions