Working with Strings - Day 2 - Part 1

Sign in to queue

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

Download

Download this episode

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]

Add Your 2 Cents