Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Class Builder Generator
Class Builder Generator

Class Builder Generator

Jose Felipe Blum Araujo

|
2,550 installs
| (4) | Free
Generate simple, efficient and beautiful class builders
Download

Release notes, issue tracker and suggestions

If you want to report a bug or have a suggestion, please follow this link.

About the extension

Simply, easily and quickly create class builders.

Features

  • Create With methods for all properties of the class
  • For list type properties, two With methods are created - one to provide an entire list and one to add an item to the list (this can be controlled by a configuration)
  • If your class has an existing constructor, this one will be used
  • But if your class has more than one constructor, a window will appear asking you to select a constructor to use
  • The generation of the methods With will respect the chosen constructor (if exist more than one) and also the option that defines the behavior of generate or not the methods
  • Add or not the "_" prefix to the fields

Example

Let's imagine you have a User class and want to create a builder using the Fluent Interface Design Pattern to make your testing easier. In this case, just right-click on the class and select the option below:

Screenshot_2021-11-05_224956__1.png

The extension will create for you a builder with all the necessary methods to make your life easy:

carbon__2_.png

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft