We've started using Reactive Extentions (Rx) quite heavily in our current project. We were hoping to use Resharper's Search with Pattern/Pattern Catalogue feature to allow us to give devs some hints and guidance.
I've defined the following pattern:
<ReplacePattern IsNull="True" />
<ExpressionPlaceholder Name="obs" ExpressionType="System.IObservable<string>" ExactType="False" />
<ExpressionPlaceholder Name="action" ExpressionType="System.Action<string>" ExactType="False" />
This basically searches for all uses of the IObservable<T>.Subscribe(Action<T>) extension method. In the above, I've had to provide a concrete type (string) to get it to find anything.
Is there anyway I can leave the generic type undefined (T)? I tried specifying a type of 'object', but it seems that co/contravariance has not yet made it into this part of Resharper.
Can anyone provide any hints?