Adam Ruth
Adam Ruth

Reputation: 3655

ReSharper template macro for method return type

I can't seem to find a way to insert the method return type in a ReSharper 5 macro. Can this be done?

For example, I have the following template:

Contract.Ensure(Contract.Result<$RESULTTYPE$>() != null);

I would like $RESULTTYPE$ to be automatically filled with the data type of the current method, but I can't find a macro that would do that.

Upvotes: 6

Views: 1200

Answers (1)

Related Questions