开发者

EnvDTE partial class keyword

开发者 https://www.devze.com 2022-12-18 09:16 出处:网络
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 kn

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?


This should help you out

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号