Dan

C9 Bytes: Alex Turner showing the evolution of C#

Download this episode

Download Video

Description

In this C9 Byte, Alex Turner walks through how the C# language has evolved between version 1.0, 2.0, and 3.0 for working with data structures. If you don't know Alex, he's the guy that got Anders Hejlsberg to pay him $202 when he was an intern.

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • vesuvius
      If you enjoyed this video, watch Daniel as well. He has an excellent reverse engineered .NET example.
    • gogole
      Neat stuff, how did you get your console window to have a white background ? I would love to do the same. Please tell Smiley
    • Alex Turner
      Hey gogole,

      My laptop is always set up like that with everything as large black text on white so people can easily see output from the back of the room.

      It's pretty easy to do... when you're in a console window, click the Title Bar icon in the upper-left and choose Properties, and then go to the Colors tab.  From there you can mess with the foreground and background colors.

      The other trick I use when showing people console output is to hit Ctrl-F5 instead of F5 to run without debugging.  This automatically ends the program with the "Press any key to continue . . ." without having to put Console.ReadLine() in at the end Smiley
    • gogole
      cool, thanks for that one .White background +  black consolas font is a knockout Smiley
    • JChung2006
      Another easy way to get black-on-white:  the COLOR command.  COLOR F0 will get you black on white.  COLOR /? for more details.

      Coincidentally, this video had an excellent demonstration of how IntelliSense can screw you up when you try to enter lambda expressions in C#.  When Alex tried to enter c => c.City == "London", IntelliSense "helpfully" suggested case even though it makes no sense to enter the case keyword at that point (he wasn't even in a switch statement).  I'm learning to hit Esc to cancel the IntelliSense, but I would prefer not having to do so.  Please fix this.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.