Jul
24
2008
0

ReSharper Tip of the Day: Create a New Method

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.

Written by Mark in: ReSharper Tip of the Day | Tags:

Powered by WordPress | Kredit | TheBuckmaker