Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
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 
If you are dealing with that many paths, you could skip the first three characters if you know for sure they all start on the C drive. If not, you could skip only the second and third characters since you know they will be ":\" for all paths. Other than this optimization, there is no way to improve the efficiency of this algorithm since every character will need to be compared to check for equality.

Jeff
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 
AnswerRe: Path stripping algorithim.....help required Pin
Luc Pattyn10-Sep-07 7:12
sitebuilderLuc Pattyn10-Sep-07 7:12 
GeneralRe: Path stripping algorithim.....help required Pin
Skippums10-Sep-07 8:22
Skippums10-Sep-07 8:22 
GeneralRe: Path stripping algorithim.....help required Pin
Luc Pattyn10-Sep-07 9:53
sitebuilderLuc Pattyn10-Sep-07 9:53 
GeneralRe: Path stripping algorithim.....help required Pin
Skippums10-Sep-07 10:08
Skippums10-Sep-07 10:08 
GeneralRe: Path stripping algorithim.....help required Pin
c#_keithy10-Sep-07 21:57
c#_keithy10-Sep-07 21:57 
QuestionHelp with DataGridViewTextBoxColumn Pin
gugulethun10-Sep-07 3:47
gugulethun10-Sep-07 3:47 
AnswerRe: Help with DataGridViewTextBoxColumn Pin
mr.mohsen10-Sep-07 4:57
mr.mohsen10-Sep-07 4:57 
QuestionWindow Service Error Pin
ramdil10-Sep-07 2:56
ramdil10-Sep-07 2:56 
AnswerRe: Window Service Error Pin
Nissim Salomon10-Sep-07 3:43
Nissim Salomon10-Sep-07 3:43 
GeneralRe: Window Service Error Pin
ramdil12-Sep-07 23:41
ramdil12-Sep-07 23:41 
QuestionNeed help with time math calculation Pin
RapGame200610-Sep-07 2:38
RapGame200610-Sep-07 2:38 
AnswerRe: Need help with time math calculation Pin
Colin Angus Mackay10-Sep-07 2:41
Colin Angus Mackay10-Sep-07 2:41 
GeneralRe: Need help with time math calculation Pin
RapGame200610-Sep-07 4:52
RapGame200610-Sep-07 4:52 
Questionreterive Xml attribute values [modified] Pin
M.A.Burhan10-Sep-07 2:14
M.A.Burhan10-Sep-07 2:14 
AnswerRe: reterive Xml attribute values Pin
pmarfleet10-Sep-07 2:47
pmarfleet10-Sep-07 2:47 

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.