Intellisense - Autocomplete for fxns with enum-type arguments

  • Thread starter Thread starter Jim
  • Start date Start date
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
 
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.
 
Back
Top