I have an extension method:
public static void Foo<T>(this MyClass<T> target) where T : IEnumerable {
I want to hide this extension method from InteliSense if T is a string, but not for other types, just as the extension methods for IEnumerable in Linq are hidden when you work with a string. I looked at the EditorBrowsableAttribute , but doesn't seem to hide the method based on the generic type.
source share