I have been trying to create some custom macro for generation some code based on properties of parameters type.
I have used next code:
var method = TextControlToPsi.GetContainingTypeOrTypeMember(context.SessionContext.Solution, control);
IParameter item = ((IMethod)method).Parameters.Where(p => p.ShortName == myArgument.GetValue()).FirstOrDefault();
And now I want to know what is type of parameter and what are properties of this type. But it is wraped by JetBrains object and I can't get it in clean way.
I found that properties are placed in next collection as item.Type.GetClassType().Fields but I still cant get clean property names.
Could you please help me with this?