How can I check if an
ITypeSymbol instance refers to a delegate type (like
I think I can check if the base type is
System.Delegate. Is this the correct way to do so or is there a better solution?
typeSymbol.TypeKind == TypeKind.Delegate;