I've stored the type I want to create, and a string description in a combobox, but I haven't been able to find a way to get a handle on and make use of the constructor of that type from here. This code I found using intellisense looked like it should work, but init is nothing after this runs.Code:Dim pair As KeyValuePair(Of Type, String) = DirectCast(Me.cmbClass.SelectedItem _ , KeyValuePair(Of Type, String)) Dim init As System.Reflection.ConstructorInfo = pair.Key.TypeInitializer
I'm trying to get a handle on the constructor for my type, any ideas?




Reply With Quote