Working with Strings - Day 2 - Part 1

Download this episode

Download Video

Description

Since you'll often be working with user-inputted data when writing Silverlight applications for the Windows Phone 7, Bob walks you through some common String manipulation features of the .NET Framework Class Library's String class and StringBuilder class to help you parse, format, manipulate, concatenate and evaluate string data.

Download the source code in c#

Download the source code in VB.Net

Embed

Format

Available formats for this video:

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

    The Discussion

    • User profile image
      Mintydog

      Good video, but ctrl + . does nothing for me after I type stringBuilder. Did I do something wrong? I did it immediately after I typed it.

      Edit: I found it, I didnt have a capital S at the start. Doh!

    • User profile image
      James O'Neill

      I'd recommend Kathy Kam's .NET format string 101 on her MSDN blog as a reference.

    • User profile image
      Clint

      @Mintydog: a nice little trick you can do is control + space and intellisense will help correct that for you! 

    • User profile image
      Michael

      Is there any reason why mine didn't put commas and decimal places into the number sequence or the $ sign? Where can I change that?

    • User profile image
      Clint

      @Michael: can you paste your line of code that does the string.format?  That would help me figure out what happened.

    • User profile image
      haibo

      the "control + ." key never works for me. i spent 10 minuts to try and nothing happened.
      what is going on in this program?

    • User profile image
      haibo

      here is my code.
      StringBuilder
       
      [quote]

      Dec 31, 2010 at 5:01 PM, Clint wrote
      @Michael: can you paste your line of code that does the string.format?  That would help me figure out what happened.
      [/quote]

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.