Click here to Skip to main content
15,885,213 members
Home / Discussions / C#
   

C#

 
GeneralRe: Parsing a string Pin
Ennis Ray Lynch, Jr.30-Aug-10 4:25
Ennis Ray Lynch, Jr.30-Aug-10 4:25 
GeneralRe: Parsing a string Pin
jenya730-Aug-10 4:26
jenya730-Aug-10 4:26 
GeneralRe: Parsing a string Pin
jenya730-Aug-10 4:30
jenya730-Aug-10 4:30 
GeneralRe: Parsing a string PinPopular
Ian Shlasko30-Aug-10 4:43
Ian Shlasko30-Aug-10 4:43 
GeneralRe: Parsing a string Pin
OriginalGriff30-Aug-10 5:40
mveOriginalGriff30-Aug-10 5:40 
AnswerRe: Parsing a string Pin
Not Active30-Aug-10 5:17
mentorNot Active30-Aug-10 5:17 
AnswerRe: Parsing a string Pin
PIEBALDconsult30-Aug-10 16:51
mvePIEBALDconsult30-Aug-10 16:51 
GeneralDynamic Arrays Pin
Bassam Abdul-Baki30-Aug-10 3:26
professionalBassam Abdul-Baki30-Aug-10 3:26 
I haven't done .NET programming in a while so I'm not sure what the best approach is for this. I'm using the .NET Framework 4.0 and the BigInteger class. Before the end of my loop, I have:
 Array.Resize(ref numbers, numbers_temp.Length);
 numbers_temp.CopyTo(numbers, 0);
Is there a better approach than this? I have an array of BigInteger that I add and delete numbers from at various times in the loop. Towards the end of my loop, this array grows quite a bit. It seems such a waste to create another array to copy all members from one to the other and then destroy the older one at every loop iteration.

Thanks!

GeneralRe: Dynamic Arrays Pin
Ennis Ray Lynch, Jr.30-Aug-10 3:50
Ennis Ray Lynch, Jr.30-Aug-10 3:50 
GeneralRe: Dynamic Arrays Pin
Bassam Abdul-Baki30-Aug-10 3:52
professionalBassam Abdul-Baki30-Aug-10 3:52 
GeneralRe: Dynamic Arrays Pin
Bigdeak30-Aug-10 3:51
Bigdeak30-Aug-10 3:51 
GeneralRe: Dynamic Arrays Pin
Bassam Abdul-Baki30-Aug-10 3:56
professionalBassam Abdul-Baki30-Aug-10 3:56 
GeneralRe: Dynamic Arrays Pin
harold aptroot30-Aug-10 3:52
harold aptroot30-Aug-10 3:52 
GeneralRe: Dynamic Arrays Pin
Bassam Abdul-Baki30-Aug-10 3:57
professionalBassam Abdul-Baki30-Aug-10 3:57 
GeneralRe: Dynamic Arrays Pin
Bassam Abdul-Baki30-Aug-10 4:04
professionalBassam Abdul-Baki30-Aug-10 4:04 
GeneralRe: Dynamic Arrays Pin
harold aptroot30-Aug-10 4:07
harold aptroot30-Aug-10 4:07 
GeneralRe: Dynamic Arrays Pin
Bassam Abdul-Baki30-Aug-10 4:24
professionalBassam Abdul-Baki30-Aug-10 4:24 
GeneralRe: Dynamic Arrays Pin
harold aptroot30-Aug-10 4:30
harold aptroot30-Aug-10 4:30 
GeneralRe: Dynamic Arrays Pin
Bassam Abdul-Baki30-Aug-10 5:03
professionalBassam Abdul-Baki30-Aug-10 5:03 
GeneralRe: Dynamic Arrays Pin
harold aptroot30-Aug-10 5:05
harold aptroot30-Aug-10 5:05 
GeneralRe: Dynamic Arrays Pin
Bassam Abdul-Baki30-Aug-10 5:19
professionalBassam Abdul-Baki30-Aug-10 5:19 
GeneralRe: Dynamic Arrays Pin
harold aptroot30-Aug-10 5:25
harold aptroot30-Aug-10 5:25 
GeneralRe: Dynamic Arrays Pin
JasonPSage31-Aug-10 5:05
JasonPSage31-Aug-10 5:05 
GeneralSlimList Pin
AspDotNetDev31-Aug-10 5:08
protectorAspDotNetDev31-Aug-10 5:08 
GeneralRe: SlimList Pin
Bassam Abdul-Baki31-Aug-10 5:25
professionalBassam Abdul-Baki31-Aug-10 5:25 

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.