Delegate Function CreateObject(Of I)(Object context) As I Class Container Property ReadOnly ObjectType() As Type End Class Class Container(of I) Inherits Container Property ReadOnly Creator() As CreateObject(Of I) End Class 'And some where in the code i am trying to achieve this Class SomeClass Function SomewhereIntheCode(myContainer As Container) As Expresion Dim delType As Type Dim del as [Delegate] Dim exp as Expression delType = GetType(CreateObject(Of )).MakeGenericType(myContainer.ObjectType) 'del=[Delegate].CreateDelegate(delType,...here is a problem 'return del 'but now i want to return an 'exp=.....here is the biggest problem return exp End Function End Class
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)