ReSharper Tip of the Day: Create a New Method

Posted on July 24, 2008 by Mark.
Categories: ReSharper Tip of the Day.

I needed to create a list of categories in my class that I want to populate using my facade. So instead of going to the facade and creating it there, let’s just do it right here where I need it. It’ll help get the signature right, granted this one is pretty simple. I type how I want to use it and press my handy dandy Alt+Enter.

Why yes Resharper, I would like to create a method with that exact name on that exact class. Thank you. It generates the stub for the method in the right class.

Here is where I start my unit testing.

Granted this method was really simple, but if you had two or three parameters it becomes much more valuable.

no comments yet.

Leave a comment

Names and email addresses are required (email addresses aren't displayed), url's are optional.

Comments may contain the following xhtml tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>