<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In .NET 2.0, Activator.CreateInstance(typeof(void)) does not work
> anymore.
>
> System.NotSupportedException : Cannot dynamically create an instance of
> System.Void.
>
> In the documentation, only TypeBuilder, TypedReference, ArgIterator,
> and RuntimeArgumentHandle types are listed as not supported.
>
This is by design and documented, from the Void structure documentation
Remarks
This structure is used in the System.Reflection namespace. This structure
has no members, and you cannot create an instance of this structure.
Willy.
|