Re: Converting from ArrayList to non System.Type array
- From: Jon Shemitz <jon@xxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Mar 2005 18:39:01 -0800
Jack Addington wrote:
> I have a method that takes an array of nodes (UltraNode[]) as a parameter.
>
> I've got an arrayList of objects that I am trying to convert to UltraNodes
> and pass to the method but I cannot seem to get the syntax right.
>
> I thought I was able to go ArrayList.ToArray(typeof(UltraNode)) and be done
> with it.
Close. You want
(UltraNode[]) ArrayList.ToArray(typeof(UltraNode))
--
www.midnightbeach.com
.
- References:
- Converting from ArrayList to non System.Type array
- From: Jack Addington
- Converting from ArrayList to non System.Type array
- Prev by Date: Re: Why can't I transfer non-english letters over my network connectio
- Next by Date: Re: Throwing exception in a try block?
- Previous by thread: Converting from ArrayList to non System.Type array
- Next by thread: Re: Obtaining the logged in user from a remote machine
- Index(es):
Relevant Pages
|