M
msnews.microsoft.com
How do I get Intellisense to open a dropdown list box for a method's
parameters when the parameter is an ENUM?
public class MyClass
{
public enum IDkind
{
PersonID,
EntityID,
PlaceID
}
/// <summary>
/// Gets an ID value of a particular KIND
/// </summary>
/// <param name="K">The kind of ID desired</param>
public int IDget(IDkind K)
{
return (int) IDsArray.GetValue(new int[] {(int) K});
}
}
===========================
Then, in another location I type:
MyClass.IDkind IDtype = MC.IDget(
When I type the last parenthesis above, Intellisense automatically opens and
shows me the Method's Signature and my parameter's description, like this:
int MyClass.idGet(MyClass.IDkind K)
K: The kind of ID desired
That's fine .... but now I want Intellisense to open a dropdown list of the
valid MyClass.IDkind enum's to choose from.
How?
parameters when the parameter is an ENUM?
public class MyClass
{
public enum IDkind
{
PersonID,
EntityID,
PlaceID
}
/// <summary>
/// Gets an ID value of a particular KIND
/// </summary>
/// <param name="K">The kind of ID desired</param>
public int IDget(IDkind K)
{
return (int) IDsArray.GetValue(new int[] {(int) K});
}
}
===========================
Then, in another location I type:
MyClass.IDkind IDtype = MC.IDget(
When I type the last parenthesis above, Intellisense automatically opens and
shows me the Method's Signature and my parameter's description, like this:
int MyClass.idGet(MyClass.IDkind K)
K: The kind of ID desired
That's fine .... but now I want Intellisense to open a dropdown list of the
valid MyClass.IDkind enum's to choose from.
How?