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?
A:
Muse VSExtensions
2010-04-29 08:20:11
? I've read that article before, but I still don't see where it says anything about determining if the class you're looking at in the code model is a partial or not. The only comment in that article about partials is in relation to how setting elements works (or doesn't) in a partial context.
Paul
2010-05-01 13:09:20
A:
This should help you out
if(codeClass.ClassKind == vsCMClassKind.vsCMClassKindPartialClass)
{
// It is a partial class
}
Phill Duffy
2010-07-30 12:02:31