[Mono-devel-list] Getting ConstructorInfo of instanciated generic type

Kamil Skalski nazgul at omega.pl
Thu Jan 6 09:04:35 EST 2005


I have a question regarding System.Reflection.Emit in context of generics.
I have a ConstructorInfo instance of generic type, now I want to emit code
creating new object of this type. But I need to use a method of generic type
instanciated to some set of type parameter.
The question is how to obtain ConstructorInfo of instanciated version of
generic type. Do I always need to first instanciate type, then lookup
constructor related to the one, which I have?
Or maybe there is some method to directly instanciate ConstructorInfo with
type parameters?

Kamil Skalski

More information about the Mono-devel-list mailing list