2 responses to “Top Five Features in C# 2005”

  1. Jason Cone

    Generics: To me, this is reason enough to upgrade. In fact, I currently don’t allow my team to create “parameterized classes” (which, effectively, is what a template is) because C#‘s current support for such a mechanism just plain sucks. It’s beyond me why this wasn’t a core feature in the initial release.

    Anonymous Methods: It’s all the more surprising that it took them this long to incorporate this feature given that the Active Scripting architecture has long accommodated this sort of thing (methods/functions are nothing more than COM objects).

    Edit and Continue: Furthermore, it’s completely inane that you can’t just compile a single C# source file without building the entire project. Is this possible in VS 2005?

    Refactoring: So how does VS 2005 better accommodate refactoring? We’re going to refactor the codebase of our web apps once we make to the move to VS 2005 (from VS 2002), but that won’t be until we’ve completely finished the production version of our flagship product (IOW, I have to be able to financially justify such an effort).

    Form Editing Enhancements: Gah. I can’t remember the last time I used the Design View to work on a web form/user control. I’ll give it a try out of wanting to be fair, but I’m skeptical that VS will ever be able generate appropriate (subjectively defined, of course) HTML based on a RAD-based UI. Furthermore, the formatting of said generated HTML is absolutely horrendous. HTML View for me, baby.

    Iterators: Care to elaborate? IMO, Enumerable collections are currently quite simple to create.

  2. Joel "Jaykul" Bennett

    Generics: Why not until now? Because Worse is Better … or something. [ ;) ] Basically, you have to put some features off to later releases in order to get it out in a reasonable timeframe.

    Compiling: Still can’t compile a single file in the C# IDE (you can in C++, and you can at the command-line, so … maybe it’s just a matter of a plugin).

    As far as the form editing … I dono about HTML, I only use it for winforms. Actually, I haven’t really used ASP at all.

    I edited the original article to answer questions about iterators and refactoring, I hope [ ;) ]