array of classes

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?
Khan [ Di, 15 April 2008 19:31 ] [ ID #1942571 ]

Re: array of classes

> 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<YourCustomClass> myList = new List<YourCustomClass>();
Morten Haug [ Di, 15 April 2008 20:01 ] [ ID #1942574 ]
Microsoft » microsoft.public.dotnet.general » array of classes

Vorheriges Thema: Webforms C#: Validating FormView fields
Nächstes Thema: outlook 2007 add-in button in c# with mailitem forward not working