Reggie Burnett [mailto:[EMAIL PROTECTED]] wrote:

> why doesn't this compile to properly return a StructType[] ?

You need to cast... ArrayList::ToArray returns an Object[].

<codeSnippet langauage="C#">
return (StructType[])arList.ToArray(typeof(StructType))
</codeSnippet>

HTH,
Drew

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to