Type type = Type.GetType(string.Format("Gestor.Data.Entities.{0},Gestor.Data",e.Item.Value)); MetaDataUtil.GetColumnasGrid<type>();
但它不工作,你有什么想法可以这样做吗?
var method = typeof(MetaDataUtil) .GetMethod("GetColumnasGrid") .MakeGenericMethod(new [] { type }) .Invoke(null,null);