I have a generic function:
T GetVal<T>()
where T : class;
I also have a function which gets a Type and based on it should return the type specified:
func(Type type) {
var classType = ? // get the class type from type to use it in the next line
return GetVal<classType>()
}
Is it possible?