EnvDTE partial class keyword
-
23-09-2019 - |
Question
I'm introspecting on the code in a project using EnvDTE, and I want to be able to determine if they're a partial class, but it doesn't seem to exist in the namespace. Does anyone know how to do this?
Solution
This should help you out
if(codeClass.ClassKind == vsCMClassKind.vsCMClassKindPartialClass)
{
// It is a partial class
}
OTHER TIPS
You can use the C# code model. Check this msdn article
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow