Click here to Skip to main content
15,884,991 members
Home / Discussions / C#
   

C#

 
AnswerRe: Drag Drop Problem Pin
STeAlth-S1-Mar-09 18:15
STeAlth-S1-Mar-09 18:15 
GeneralRe: Drag Drop Problem Pin
S K Y1-Mar-09 20:49
S K Y1-Mar-09 20:49 
GeneralRe: Drag Drop Problem Pin
STeAlth-S1-Mar-09 23:03
STeAlth-S1-Mar-09 23:03 
GeneralRe: Drag Drop Problem Pin
S K Y2-Mar-09 2:03
S K Y2-Mar-09 2:03 
QuestionWhat the heck? Pin
Paul Brower1-Mar-09 14:15
Paul Brower1-Mar-09 14:15 
AnswerRe: What the heck? Pin
Luc Pattyn1-Mar-09 14:23
sitebuilderLuc Pattyn1-Mar-09 14:23 
QuestionIndexOf returns wrong value if the string to search for contains characters from the Latin Extended-C range Pin
Gerard van Wilgen1-Mar-09 9:34
Gerard van Wilgen1-Mar-09 9:34 
AnswerRe: IndexOf returns wrong value if the string to search for contains characters from the Latin Extended-C range Pin
Luc Pattyn1-Mar-09 13:18
sitebuilderLuc Pattyn1-Mar-09 13:18 
Hi,

running Vista SP1 and Visual Studio 2008, targeting either .NET 3.5 SP1 or .NET 2.0 I get correct values for IndexOf(char) but your phenomena for IndexOf(string).


[ADDED]
Reflector tells me string.IndexOf is using CultureInfo.CurrentCulture.CompareInfo.IndexOf
(and it gets very messy when diving into that)
so it may go wrong in some cultures only, making it more likely to go unnoticed for a long time...
[/ADDED]

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Monday, March 2, 2009 9:02 AM
modified on Sunday, June 12, 2011 8:58 AM

GeneralRe: IndexOf returns wrong value if the string to search for contains characters from the Latin Extended-C range Pin
Gerard van Wilgen2-Mar-09 10:32
Gerard van Wilgen2-Mar-09 10:32 
Questionproblems creating setup for C# application Pin
laziale1-Mar-09 8:28
laziale1-Mar-09 8:28 
AnswerRe: problems creating setup for C# application Pin
Frank Kerrigan1-Mar-09 9:37
Frank Kerrigan1-Mar-09 9:37 
GeneralRe: problems creating setup for C# application Pin
laziale1-Mar-09 9:59
laziale1-Mar-09 9:59 
Questionvirtual node algorithm Pin
sunnyk861-Mar-09 7:43
sunnyk861-Mar-09 7:43 
AnswerRe: virtual node algorithm Pin
Alan N1-Mar-09 8:02
Alan N1-Mar-09 8:02 
GeneralRe: virtual node algorithm Pin
sunnyk861-Mar-09 8:36
sunnyk861-Mar-09 8:36 
Questiondelegate Pin
sheemap1-Mar-09 5:54
sheemap1-Mar-09 5:54 
AnswerRe: delegate Pin
Calin Tatar1-Mar-09 6:01
Calin Tatar1-Mar-09 6:01 
GeneralBest way to extract an image from a stream at a position other than 0? [modified] Pin
harold aptroot1-Mar-09 5:32
harold aptroot1-Mar-09 5:32 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
Alan N1-Mar-09 8:22
Alan N1-Mar-09 8:22 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
harold aptroot1-Mar-09 9:29
harold aptroot1-Mar-09 9:29 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
Anthony Mushrow1-Mar-09 8:24
professionalAnthony Mushrow1-Mar-09 8:24 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
harold aptroot1-Mar-09 9:29
harold aptroot1-Mar-09 9:29 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
Anthony Mushrow1-Mar-09 9:42
professionalAnthony Mushrow1-Mar-09 9:42 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
harold aptroot1-Mar-09 10:04
harold aptroot1-Mar-09 10:04 
Questionreduce blocking queue of Tcp socket c# Pin
abdul jalil1-Mar-09 3:37
abdul jalil1-Mar-09 3:37 

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.