다음을 통해 공유


MSDN TV on Visual C# "Whidbey"

Visual C# Whidbey really does rock, don't believe me? I'll show you in this MSDN TV episode.

Things I showed:

Language/Framework Features

  • Generics
  • Anonymous Methods
  • DataSet XML serialization
  • File class enhancements

IDE Features

  • Code Expansions/Snippets - class, property, if, using 
  • Refactoring - Encapsulate Field, Rename, Extract Interface, Surround with Region, Surround with Try/Catch
  • Visualizers - DataSet, XML string
  • Other IDE features - IntelliSense on generic types, Property Editors

Platform Features

  • ASP.NET - Object Binding a generic collection to a GridView
  • Windows Form - Browser control, GridView

Comments

  • Anonymous
    February 20, 2004
    Just watched it, great show! And thanks for setting your IDE to a big, bold font for good code visibility.
  • Anonymous
    February 21, 2004
    Thanks, definitely appreciate it :)

    I've noticed that a lot of people think that Lucida Console is the demo font, but my personal opinion and experience is that Arial Black is much better. As you correctly pointed out, the thicker a font, the easier it is to read at a long distance (the letters don't blend together). The only issue is with Arial Black is that it isn't a fixed width font, but for demo purposes I thnk its fine.
  • Anonymous
    February 23, 2004
    Robert Scoble
  • Anonymous
    February 24, 2004
    Cool features!

    One thing has me worried though, related to features that add code, such as the 'Encapsulate field' feature. The problem is, how does this interact with personal preferences of coding style? I'm not talking about variable naming conventions, but about where the newly generated code appears.

    I myself prefer to have a region for all fields (fields are always private in my code) at the bottom of the source file and have property accessors in a different region. Is there a way to configure where newly generated goes (that would be nice for the GUI designer too)? Or, as a workaround, is there a refactoring that would allow you to move a code fragment (the newly generated property) to another region (selected from a list)? Of course manual copy and paste does the trick, but just right-clicking the property and tell the IDE to move it to the end of the region named 'properties' (selected from a pop-up list) would be nicer.
  • Anonymous
    February 25, 2004
    Hi Luc,

    Thanks for the feedback, definitely appreciated. I've passed this on to Anson Horton our IDE PM to see if he knows of an easy way to do this, but I think you would have to write a macro to be able to accomplish this. The Encapsulate field refactoring is a fully customizable xml file (PDC bits location: C:Program FilesMicrosoft Visual Studio .NET WhidbeyVC#ExStencil) so you could add or change this in whatever way you would like - ex: put the private variable in a new region, but it won't have the ability to choose regions in the editor.

    Thanks,
    -Dan
  • Anonymous
    March 01, 2004
    MSDN TV ? Whidbey ? C# ?????????? (?? ???????)
  • Anonymous
    March 11, 2004
    One thing I noticed: when you were creating a constructor for a class in your video, you manually inserted the open/close curly braces, whereas some of the other nice features you were showing did this automatically! Are you planning to incorporate a feature to facilitate this?
  • Anonymous
    March 11, 2004
    In fact, thinking about it, why don't you automatically create a (default empty) constructor when you're using that nice code expansion feature for a class? It would imo be a very convenient thing to have.
  • Anonymous
    March 12, 2004
    Thanks John, I totally agree with you on the open/close curly braces for the constructor (and for all methods), but I'm not sure if having a default empty constructor in the class expansion is the way to go. Would you always want to have an empty constructor for your classes? If so, at worst you could always modify the expansion yourself and add the default constructor, but another option might be to have multiple expansions, one for a class w/ no constructor one for a class with an empty constructor.
  • Anonymous
    March 13, 2004
    Refactoring and Intelliarguments
  • Anonymous
    March 16, 2004
    Hi,
    I am unable to view Refactor option when I right click on the variable.
    Also I am unable to add property using "property" and tab combination.
    Should I do any kind of IDE settings before I use these features ?
    My versions are VS2003 (7.1.3088) and .NetFramework is (1.1.4322)
  • Anonymous
    March 16, 2004
    Parekodi - The settings that I showed are not for VS2003 but rather for the next version of Visual Studio, codenamed "Whidbey", which is now known Visual Studio 2005.

    Thanks,
    -Dan
  • Anonymous
    March 17, 2004
    Dan, is there a place in MSDN subscriber downloads where I can download the beta of Whidbey?
  • Anonymous
    April 09, 2004
    I've Seen the MSDN TV video. Great. I want to use them now. I have VS Whidbey PDC version. I do not see any refactoring options. Will I need to wait for the beta version or do I need a configuration change in current verion I have?
  • Anonymous
    April 09, 2004
    Evangelos,

    A couple of things, the refactorings I showed are only available in C# and you can't use them in ASP.NET unless the C# files are in a custom directory named "code" (at least in that build). For test purposes, try creating a windows form project, right-click in the code view and see if the refactoring options are available.

    Hope this helps,
    -Dan
  • Anonymous
    April 10, 2004
    Great!!! It works in a Windows app. Losts to play then... What I wouldent give to get involved in this project...

    Thank Dan.
    Later
  • Anonymous
    April 27, 2004
    The comment has been removed
  • Anonymous
    May 15, 2004
    I've seen the show.IT WAS AMAZING
    thank you very much.andI hope if there's more coming demos on C# Whidbey ??