Partager via


Auto-expanding enums in C#

Chris asks: Simple productivity question. Why doesn't C# intellisense expand enum values like VB.NET? I'm primarily a C# programmer, but I use VB.NET for some functions, and it's one thing I really miss.

---

Chris, Visual C# 2005 now includes a similar feature. If you have parameter help showing and that parameter is an enum, then we'll pop up a completion list with that enum selected. If you then hit 'dot' you'll get all the enum values. We're considering having that be automatic if the only overload for the current method is one that takes an enum value. Try out the community preview and tell us what you think about this behavior.

Comments

  • Anonymous
    May 28, 2004
    It works like a charm. Great job!
  • Anonymous
    May 28, 2004
    Scott: Schweeeeeeeeeeet! You can thank <a href="http://weblogs.asp.net/jaybaz_ms">Jay</a> for that feature. He added it after hearing so many people's frustrations coming from VB to C#