I have included VisualStudioHelper. Here I get all my classes by attribute
var classesWithMapAttribute = VisualStudioHelper.GetClassesByAttributeName("Map", projectName);
After that, I get all the properties in the class.
foreach (CodeClass pi in classesWithMapAttribute)
{
var allProperties = VisualStudioHelper.GetAllCodeElementsOfType(pi.Members, vsCMElement.vsCMElementProperty, true);
}
It works great. But I need to get property types. If i call
foreach(CodeProperty property in allPropertiesDto)
{
<#= property.Type #>
}
I will get .__ ComObject System as a result
Could you tell me how to get a nested property type?
source
share