Intellisense - Autocomplete for fxns with enum-type arguments

J

Jim

Given a function:

MyFunc( MyEnumType arg)
{
...
}

I have noticed that sometimes (but not consistently over
different functions or classes), that when I call MyFunc()
in code, Intellisense will provide me a list of possible
values to pick from when I type the opening parenthesis of
the function name. However, as I said, this doesn't
always happen with all functions, and sometimes one
argument will auto-populate and others will not. I always
get the dropdown if I start out with

MyFunct( MyEnum. <-Dropdown shows up with MyEnum values

But sometimes simply using a function name and opening
parenthesis offers the values right away, where other
times it does not. Can anyone provide me with some
clarity as to how and when this functioanlity is supported?

Thanks!

JIM
 
P

Peter Rilling

VB.NET has the ability to display the list of enumerations automatically, C#
does not. In C#, you always have to specify the enumeration type name
before the list of possible values are displayed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top