Getting type from a symbol in roslyn
问题 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, etc) I want to be able to do various checks on the type e.g. as checking if the type implements any interface or is cast-able to any interface, just like one can check on System.Type. The problem I am having is that most of the concrete classes used to represent the symbol are internal (see http://source.roslyn.io/) and