Hi,
I'd like to create an array of a Type. How can I do that using reflection?
Currently I'm using the following code to create single instances:
constr=type.GetConstructor(new Type[]{...});
newObj=constr.Invoke(new object[]{...});
Now I need to create a typed array of that type to store a number of these
instances. How can I do that?
Any help is quite appreciated!
TIA,
Axel Dahmen
Mattias Sjögren - 08 Mar 2006 17:21 GMT
Axel,
>Now I need to create a typed array of that type to store a number of these
>instances. How can I do that?
Array.CreateInstance
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Axel Dahmen - 09 Mar 2006 10:47 GMT
Great! Thanks, Matthias!
--------------
> Axel,
>
[quoted text clipped - 4 lines]
>
> Mattias