Click here to Skip to main content
15,901,283 members
Home / Discussions / C#
   

C#

 
GeneralRe: Removing values in a dictionary Pin
#realJSOP4-Jan-10 6:11
professional#realJSOP4-Jan-10 6:11 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 6:17
Paul Harsent4-Jan-10 6:17 
GeneralRe: Removing values in a dictionary Pin
Luc Pattyn4-Jan-10 6:50
sitebuilderLuc Pattyn4-Jan-10 6:50 
AnswerRe: Removing values in a dictionary Pin
David Skelly4-Jan-10 5:56
David Skelly4-Jan-10 5:56 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 6:00
Paul Harsent4-Jan-10 6:00 
GeneralRe: Removing values in a dictionary Pin
David Skelly4-Jan-10 6:17
David Skelly4-Jan-10 6:17 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 22:21
Paul Harsent4-Jan-10 22:21 
GeneralRe: Removing values in a dictionary Pin
Ben Fair4-Jan-10 6:36
Ben Fair4-Jan-10 6:36 
When you use

string key = text.Substring((indexofTO + 2));


the Substring method returns all the remaining text in the string starting from the supplied index. If you feel that the index position is correct try supplying a length parameter or verify there is no funky data at the end of the string. I've seen cases where odd characters have been thrown onto the end and caused me all kind of headaches especially when they are non-visual characters that most text editors won't render (like a Vertical Tab, ascii 11?). I recommend stopping at the above line in the debugger and checking all characters from indexofTO + 2 thru text.Length - 1 in the Watch window; check each individual character position and see if it contains the expected data.

Hold on a second here... Don't you think you might be putting the horse ahead of the cart?

QuestionIs there a way to get a list of all exceptions that can be thrown by a program.... Pin
edaindia4-Jan-10 4:40
edaindia4-Jan-10 4:40 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
JasonLee074-Jan-10 4:50
JasonLee074-Jan-10 4:50 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
edaindia4-Jan-10 6:17
edaindia4-Jan-10 6:17 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
sanforjackass4-Jan-10 4:53
sanforjackass4-Jan-10 4:53 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
Eddy Vluggen4-Jan-10 5:14
professionalEddy Vluggen4-Jan-10 5:14 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
edaindia4-Jan-10 6:34
edaindia4-Jan-10 6:34 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
Eddy Vluggen4-Jan-10 11:59
professionalEddy Vluggen4-Jan-10 11:59 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
Luc Pattyn4-Jan-10 5:14
sitebuilderLuc Pattyn4-Jan-10 5:14 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
#realJSOP4-Jan-10 5:24
professional#realJSOP4-Jan-10 5:24 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
Mycroft Holmes4-Jan-10 13:29
professionalMycroft Holmes4-Jan-10 13:29 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
#realJSOP4-Jan-10 5:37
professional#realJSOP4-Jan-10 5:37 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
PIEBALDconsult4-Jan-10 13:55
mvePIEBALDconsult4-Jan-10 13:55 
QuestionStreamreader, Stringbuilder, and Stream or Stringwriter Pin
JasonLee074-Jan-10 4:30
JasonLee074-Jan-10 4:30 
AnswerRe: Streamreader, Stringbuilder, and Stream or Stringwriter Pin
Dimitri Witkowski4-Jan-10 4:58
Dimitri Witkowski4-Jan-10 4:58 
GeneralRe: Streamreader, Stringbuilder, and Stream or Stringwriter Pin
JasonLee074-Jan-10 5:28
JasonLee074-Jan-10 5:28 
GeneralRe: Streamreader, Stringbuilder, and Stream or Stringwriter Pin
Dimitri Witkowski4-Jan-10 5:53
Dimitri Witkowski4-Jan-10 5:53 
QuestionWorking with the animation codes in C# Pin
anishshrestha4-Jan-10 3:15
anishshrestha4-Jan-10 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.