Esempio n. 1
0
 public static INamedTypeSymbol FindBaseTargetType(this ITypeSymbol symbol, string typeName)
 {
     return(symbol.EnumerateBaseType()
            .Where(x => x.OriginalDefinition?.ToDisplayString() == typeName)
            .FirstOrDefault());
 }