array of classes

array of classes

am 15.04.2008 19:31:28 von Khan

Hi all.

I'm new to this.I'm creating asp.net page in c#.
I have a custom class and i want to create an array of that class. How do i
create that array and initialze it?

Re: array of classes

am 15.04.2008 20:01:25 von Morten Haug

> Hi all.
>
> I'm new to this.I'm creating asp.net page in c#.
> I have a custom class and i want to create an array of that class. How
> do i
> create that array and initialze it?

Hi, you should use a Generic collection-class for type-safety. You can initialize
it like this:

List myList = new List();