What is the best general purpose way to get a System.Type from Microsoft.CodeAnalysis.ISymbol for different types of symbols ? (e.g. class declarations, variable, properties
I think this is what you are looking for :
var castedProperty = (IPropertySymbol) property; var type = castedProperty.Type.Name;
var castedProperty = (IPropertySymbol) property;
var type = castedProperty.Type.Name;
** variable 'property' beeing an ISymbol instance.