Theoretically, you can access up to 2147483648 (2^31) elements in an
ArrayList or in any single rank of an array.  But memory limitations on the
system would likely kick in well before then. Practical use limitations kick
in well before then.

If you need to have all 65,000+ items in memory at one time, you are stuck
with some sort of collection, array or DataTable.  The DataTable offers you
the option to easily sort the data and easily select subsets or use views.
Though, in most cases, you'd be better off retrieving smaller sets of items
from the data store as needed rather than loading that many items into
memory no matter what storage mechanism you use.

What are you trying to do?

HTH,

Dean Fiala
-----------------------------
Very Practical Software, Inc.
http://www.vpsw.com/links.aspx





-----Original Message-----
From: patrickekenney [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 8:15 PM
To: [EMAIL PROTECTED]
Subject: [AspNetAnyQuestionIsOk] Max Number of Elements in a C# Dynamic
Array


Is there a limit of Max Number of Elements in a C# Dynamic Array?

If someone wanted to use more then 65 thousand elements is there a
better struct?

thanks in advance.





Yahoo! Groups Links









------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to