I'm writing a small plugin on top of r# 2005 and got stuck with following: I
need to get selected class metadata but I don't know how. By selected I mean
class selected in active code window.
Following the samples and debugger i managed to have reference of
ITypeElement of selected class. Nice. I know class name, namespace and
assembly. Latter is true if element.Module.Name is actually assembly name.
Now I need information on class fields and properties, more specifically
their name and type (string telling me "System.String" would be enough). I
was trying to go with ITypeMember members = element.GetMembers() but I
managed to get only member name and if it's a field or property
(implementing IFieldDeclaration, IPropertyDeclaration). How would I get type
name if member is field or propery?