471,319 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

limit list capacity

Tem
Is there a way to set a hard limit on the capacity of a List<>?
Apr 9 '08 #1
2 4813
On Tue, 08 Apr 2008 19:27:44 -0700, Tem <te*****@yahoo.comwrote:
Is there a way to set a hard limit on the capacity of a List<>?
No. Why would you want to? What behavior would you expect once the limit
was reached?
Apr 9 '08 #2
Tem
I would like it to throw an exception saying the limit has been reached
"Peter Duniho" <Np*********@nnowslpianmk.comwrote in message
news:op***************@petes-computer.local...
On Tue, 08 Apr 2008 19:27:44 -0700, Tem <te*****@yahoo.comwrote:
>Is there a way to set a hard limit on the capacity of a List<>?

No. Why would you want to? What behavior would you expect once the limit
was reached?
Apr 9 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Cengiz Dincoglu | last post: by
7 posts views Thread by Evangelista Sami | last post: by
9 posts views Thread by freduchi | last post: by
81 posts views Thread by Peter Olcott | last post: by
35 posts views Thread by Lee Crabtree | last post: by
2 posts views Thread by campos | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.