EnvDTE partial class keyword

牧云@^-^@ 提交于 2020-01-05 06:37:27

问题


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?


回答1:


This should help you out

if(codeClass.ClassKind == vsCMClassKind.vsCMClassKindPartialClass)
{
   // It is a partial class
}



回答2:


You can use the C# code model. Check this msdn article



来源:https://stackoverflow.com/questions/2144588/envdte-partial-class-keyword

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!