Parsing C# source code using CodeModel object to find TYPE PARAMETERS & TYPE PARAMETER constraints defined for a Generic Class & Method.
-
Hi, Is it possible to parse and fetch TYPE PARAMETER & TYPE PARAMETER CONSTRAINTS information defined for a Generic class OR method in a C# source code using CodeModel APIs? I do not see any API exposed in EnvDTE & EnvDTE80 namespace. Can you please suggest me a solution. Regards, Manish
-
Hi, Is it possible to parse and fetch TYPE PARAMETER & TYPE PARAMETER CONSTRAINTS information defined for a Generic class OR method in a C# source code using CodeModel APIs? I do not see any API exposed in EnvDTE & EnvDTE80 namespace. Can you please suggest me a solution. Regards, Manish
Take a look at the
MethodInfo.IsGeneric???
properties in theSystem.Reflection
namespace.Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”