Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
AnswerRe: not-null-field issue Pin
kboyette10-Sep-07 7:45
kboyette10-Sep-07 7:45 
GeneralRe: not-null-field issue Pin
newbieAl10-Sep-07 8:00
newbieAl10-Sep-07 8:00 
GeneralRe: not-null-field issue Pin
Elina Blank10-Sep-07 8:46
sitebuilderElina Blank10-Sep-07 8:46 
GeneralRe: not-null-field issue Pin
kboyette10-Sep-07 8:54
kboyette10-Sep-07 8:54 
GeneralRe: not-null-field issue Pin
newbieAl10-Sep-07 9:18
newbieAl10-Sep-07 9:18 
GeneralRe: not-null-field issue Pin
kboyette10-Sep-07 9:53
kboyette10-Sep-07 9:53 
GeneralRe: not-null-field issue Pin
newbieAl10-Sep-07 10:24
newbieAl10-Sep-07 10:24 
GeneralRe: not-null-field issue Pin
kboyette10-Sep-07 12:01
kboyette10-Sep-07 12:01 
GeneralRe: not-null-field issue Pin
newbieAl11-Sep-07 2:24
newbieAl11-Sep-07 2:24 
GeneralRe: not-null-field issue Pin
newbieAl10-Sep-07 9:07
newbieAl10-Sep-07 9:07 
QuestionWeb Browser control speed&threading Pin
Spacix One10-Sep-07 7:01
Spacix One10-Sep-07 7:01 
Questionnext cell on DataGridView ? Pin
KreaA10-Sep-07 6:05
KreaA10-Sep-07 6:05 
Questionstatic fields for threads in c# Pin
mr.mohsen10-Sep-07 5:04
mr.mohsen10-Sep-07 5:04 
AnswerRe: static fields for threads in c# Pin
PIEBALDconsult10-Sep-07 5:20
mvePIEBALDconsult10-Sep-07 5:20 
AnswerRe: static fields for threads in c# Pin
Luc Pattyn10-Sep-07 5:38
sitebuilderLuc Pattyn10-Sep-07 5:38 
QuestionHttpWebRequest Pin
smsmfe10-Sep-07 4:54
smsmfe10-Sep-07 4:54 
AnswerRe: HttpWebRequest Pin
led mike10-Sep-07 5:23
led mike10-Sep-07 5:23 
QuestionPath stripping algorithim.....help required Pin
c#_keithy10-Sep-07 4:37
c#_keithy10-Sep-07 4:37 
AnswerRe: Path stripping algorithim.....help required Pin
Judah Gabriel Himango10-Sep-07 4:59
sponsorJudah Gabriel Himango10-Sep-07 4:59 
AnswerRe: Path stripping algorithim.....help required Pin
Skippums10-Sep-07 5:15
Skippums10-Sep-07 5:15 
GeneralRe: Path stripping algorithim.....help required Pin
c#_keithy10-Sep-07 5:43
c#_keithy10-Sep-07 5:43 
GeneralRe: Path stripping algorithim.....help required Pin
Skippums10-Sep-07 5:48
Skippums10-Sep-07 5:48 
GeneralRe: Path stripping algorithim.....help required Pin
Guffa10-Sep-07 6:04
Guffa10-Sep-07 6:04 
GeneralRe: Path stripping algorithim.....help required Pin
Skippums10-Sep-07 7:06
Skippums10-Sep-07 7:06 
Good call! In fact, you could change the code to be the following for max optimization using the previous suggestions:

int result = 0;
for (int charIdx = 0; charIdx < shortestPathLength; ++charIdx) {
if (charIdx == 1) {
++charIdx;
result = 2;
continue; // Skip the :\ from the path
}
char c = paths[0][charIdx];
for (int pathIdx = 1; pathIdx < paths.Length; ++pathIdx) {
if (paths[pathIdx][charIdx] != c)
return paths[0].Substring(0, result);
}
// Not sure if "DirectorySeparator" is the property, but you get the idea
if (c == Path.DirectorySeparator)
result = charIdx;
}
return paths[0].Substring(0, shortestPathLength);

AnswerRe: Path stripping algorithim.....help required Pin
Luc Pattyn10-Sep-07 7:12
sitebuilderLuc Pattyn10-Sep-07 7:12 

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.