G
Guest
hellow , all
I want list of Generic inherited Type in DesignTime
It is as follows to try.
-----------------------------------------------------------------------------------------------
I made two of the following.
public interface ITest<T>
public class TestImplement : ITest<Somthing>
I wrote following Code in TypeConverter Class
ITypeDiscoveryService typeDiscoveryService =
context.GetService(typeof(ITypeDiscoveryService)) as
ITypeDiscoveryService;
Ilist genericInheritList = typeDiscoveryService.GetTypes(typeof(ITest<>));
-----------------------------------------------------------------------------------------------
The result of the expectation I want , is genericInheritList has
TestImplement class type.
but genericInheritList has no Type.
how do I search inherit generic Class?
Thank you for your help!
Sorry, for my bad english
Ken
I want list of Generic inherited Type in DesignTime
It is as follows to try.
-----------------------------------------------------------------------------------------------
I made two of the following.
public interface ITest<T>
public class TestImplement : ITest<Somthing>
I wrote following Code in TypeConverter Class
ITypeDiscoveryService typeDiscoveryService =
context.GetService(typeof(ITypeDiscoveryService)) as
ITypeDiscoveryService;
Ilist genericInheritList = typeDiscoveryService.GetTypes(typeof(ITest<>));
-----------------------------------------------------------------------------------------------
The result of the expectation I want , is genericInheritList has
TestImplement class type.
but genericInheritList has no Type.
how do I search inherit generic Class?
Thank you for your help!
Sorry, for my bad english
Ken