Press "Enter" to skip to content

Category: Professional C# Developer Skills

Automate your boilerplate classes in Visual Studio

I’m working on a program where I’ll need to create 25-50 classes that do the same type of thing and have the same basic structure. Instead of copy-pasting-editing for each class, I’m going to save time and reduce errors by creating a class template for Visual Studio to use for these classes. Example source code description The project is a game that connects to Twitch IRC chat. People in chat type a command, the program recognizes it, and then does the required action. This is the Command Design Pattern, which you can read more about here. Without a custom class…

Leave a Comment