Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ReSharper Essentials

You're reading from   ReSharper Essentials Make your Microsoft Visual Studio work smarter with ReSharper.

Arrow left icon
Product type Paperback
Published in Feb 2014
Publisher Packt
ISBN-13 9781849698702
Length 124 pages
Edition Edition
Arrow right icon
Author (1):
Arrow left icon
Lukasz Gasior Lukasz Gasior
Author Profile Icon Lukasz Gasior
Lukasz Gasior
Arrow right icon
View More author details
Toc

Code generation


There are many other ways to write code rather than simply pressing keys on your keyboard. ReSharper comes with many features that can generate code for you. You can find some of these features directly in Visual Studio but ReSharper comes with more. Even if ReSharper comes with some feature that exists in Visual Studio, ReSharper provides more user-friendly ways to use it.

Generating code for non-existent objects

Usually, when you are designing a class in your project, you start by writing complete code, such as class name, properties, and functions. When you are done, you can use that class in your application.

What if I told you there is a different way?

How about you start using your class before creating it and then let ReSharper create what you need?

Tip

This is a standard approach when you write applications using Test Driven Design (TDD).

As the best way to learn something is to start doing it, we will show you how ReSharper helps with generating code.

Let's open Visual Studio...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image