Find usages of a generic class with specific constraint

Viewed 799

As per title, how can I find usages of the method Process for Processor<int> rather than Processor<string>?

internal class Program
{
    private static void Main()
    {
        var processorInt = new Processor<int>();
        var processorString = new Processor<string>();

        processorInt.Process();
        processorString.Process();
    }
}

internal class Processor<T>
{
    public void Process() => Console.WriteLine(typeof(T).Name);
}
4 Answers
Related