Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: .Net Framework version issue Pin
Scott Dorman27-Aug-08 13:09
professionalScott Dorman27-Aug-08 13:09 
GeneralRe: .Net Framework version issue Pin
George_George27-Aug-08 16:56
George_George27-Aug-08 16:56 
GeneralRe: .Net Framework version issue Pin
N a v a n e e t h28-Aug-08 5:09
N a v a n e e t h28-Aug-08 5:09 
GeneralRe: .Net Framework version issue Pin
George_George2-Sep-08 0:02
George_George2-Sep-08 0:02 
QuestionGeneric class Pin
Dirso26-Aug-08 15:40
Dirso26-Aug-08 15:40 
AnswerRe: Generic class Pin
Gideon Engelberth26-Aug-08 16:07
Gideon Engelberth26-Aug-08 16:07 
AnswerRe: Generic class Pin
Mark Churchill26-Aug-08 16:49
Mark Churchill26-Aug-08 16:49 
QuestionFast way to convert string array to double array... Pin
RYU^^26-Aug-08 13:40
RYU^^26-Aug-08 13:40 
Hi,

What is the fastest way to convert string array to double array? Currently, I am doing this:
double[] arrDouble = new double[arrString.Length];
for(int i=0; i<arrString.Length; i++)
{
   arrDouble[i] = double.Parse(arrString[i]);
}


Unfortunately, this is quite slow for big array (about 3 millions). I am looking for a way to improve it. There is a link talking about converting object to double. http://blogs.msdn.com/bclteam/archive/2005/02/11/371436.aspx[^].

You will see that double.Parse is really slow because the object need to be converted to string before pass it to double.Parse. However, it is not the case here. My array is already a string array. I did test using Convert.ToDouble and it doesn't improve the speed.

Any idea?

Thanks for any help.

Cheers Smile | :)
AnswerRe: Fast way to convert string array to double array... Pin
User 665826-Aug-08 14:27
User 665826-Aug-08 14:27 
GeneralRe: Fast way to convert string array to double array... Pin
RYU^^26-Aug-08 18:40
RYU^^26-Aug-08 18:40 
GeneralRe: Fast way to convert string array to double array... Pin
blackjack215026-Aug-08 19:59
blackjack215026-Aug-08 19:59 
GeneralRe: Fast way to convert string array to double array... Pin
Andrew Carmichael18-Jun-20 4:45
Andrew Carmichael18-Jun-20 4:45 
QuestionNeed help in drag and drop Pin
Sami Sammour26-Aug-08 12:01
Sami Sammour26-Aug-08 12:01 
AnswerRe: Need help in drag and drop Pin
DaveyM6926-Aug-08 12:43
professionalDaveyM6926-Aug-08 12:43 
GeneralRe: Need help in drag and drop Pin
Sami Sammour26-Aug-08 21:53
Sami Sammour26-Aug-08 21:53 
QuestionMoving unread mails from inbox into a subfolder in inbox Pin
Slick6926-Aug-08 10:13
Slick6926-Aug-08 10:13 
AnswerRe: Moving unread mails from inbox into a subfolder in inbox Pin
Pete O'Hanlon26-Aug-08 10:40
mvePete O'Hanlon26-Aug-08 10:40 
GeneralRe: Moving unread mails from inbox into a subfolder in inbox Pin
Slick6926-Aug-08 10:49
Slick6926-Aug-08 10:49 
GeneralRe: Moving unread mails from inbox into a subfolder in inbox Pin
Pete O'Hanlon26-Aug-08 11:03
mvePete O'Hanlon26-Aug-08 11:03 
GeneralRe: Moving unread mails from inbox into a subfolder in inbox Pin
Slick6926-Aug-08 11:10
Slick6926-Aug-08 11:10 
GeneralRe: Moving unread mails from inbox into a subfolder in inbox Pin
Pete O'Hanlon26-Aug-08 22:16
mvePete O'Hanlon26-Aug-08 22:16 
QuestionStrange Error In My App Pin
Kevin Marois26-Aug-08 8:12
professionalKevin Marois26-Aug-08 8:12 
AnswerRe: Strange Error In My App Pin
Blue_Boy26-Aug-08 9:55
Blue_Boy26-Aug-08 9:55 
GeneralRe: Strange Error In My App Pin
Kevin Marois26-Aug-08 10:53
professionalKevin Marois26-Aug-08 10:53 
AnswerRe: Strange Error In My App Pin
The Cake of Deceit26-Aug-08 13:07
The Cake of Deceit26-Aug-08 13:07 

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.