Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public static INamedTypeSymbol FindBaseTargetType(this ITypeSymbol symbol, string typeName) { return(symbol.EnumerateBaseType() .Where(x => x.OriginalDefinition?.ToDisplayString() == typeName) .FirstOrDefault()); }