Adding a Custom Postfix on static
Answered
Folks,
I love the ability to use the postfix var as in:
SomeClass.var *becomes* var = new SomeClass();
I like it so much, that I want more of them :)
ISomeInterface.fake *becomes* var someInterface = A.Fake<ISomeInterface>();
I've seen in the documentation that folks get pointed to SourceTemplates for this, but there is a limitation for static classes since you can't have an extension method on a static class.
Am I missing something, somewhere, or is there no way to do what I'm describing above?
Please sign in to leave a comment.
Ricardo Diaz, thank you for your question.
Unfortunately, no, there is no way to create custom postfix templates. Please take a look at live templates to see if they can help you a little bit.
Have a great day!
Ricardo Diaz, sorry, forgot to mention that you can vote for RSRP-468412 to track status changes.