Here is the class:
public class ControlCollection : CollectionBase
{
public void Add(Control control)
{
base.List.Add(control);
...
}
....
}
and here is the error when control is null:
ArguementNullException was unhandled
Value can not be null.
Parameter name: value
Thanks
---
"Chad Z. Hower aka Kudzu" <(E-Mail Removed)> wrote in message
news:Xns95FE5E021C4F6cpub@127.0.0.1...
> "John B" <(E-Mail Removed)> wrote in
> news:fuWdnVQvRPc9bIzfRVn-(E-Mail Removed):
> > I changed my code to replace an arraylist with a collection derived from
> > collectionbase to get type-safe calls. Now though, I cannot seem to add
> > a null value to the collection, where I could previously with an
> > arraylist. Am I doing something wrong? Is there a way around it?
>
> Stating actual errors I've found is quite useful when requesting help.
>
>
> --
> Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
> "Programming is an art form that fights back"
>
> Get your ASP.NET in gear with IntraWeb!
> http://www.atozed.com/IntraWeb/
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----