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<$RESULT开发者_如何转开发TYPE$>() != 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.
Here you go:
(I updated the link)
http://blog.jetbrains.com/dotnet/2010/10/14/templates-galore-extending-functionality-with-macros/
精彩评论