TypeCode logo

TypeCode byCrookie

Use this command to install TypeCode:
winget install --id=byCrookie.TypeCode -e

Develop c# code faster by generating .NET specific boilerplate code using reflection on assemblies.

TypeCode is a .NET code generation tool designed to accelerate C# development by automatically generating boilerplate code through reflection on assemblies. This powerful utility streamlines repetitive coding tasks, allowing developers to focus on core logic and functionality.

Key Features:

  • SpecFlow Table Generation: Automatically creates SpecFlow feature tables for classes, simplifying unit test creation.
  • Fake Constructor Generation: Generates constructors for classes without parameters, aiding in unit testing scenarios.
  • Composer Generation: Produces composer classes for implementing strategies based on interfaces.
  • Mapper Generation: Creates mapper classes to facilitate seamless data transfer between two different class structures.
  • Builder Pattern Support: Automatically generates builder classes for creating complex objects using the builder pattern.

Audience & Benefit: Ideal for .NET developers and teams working with C#, TypeCode significantly reduces manual effort in writing boilerplate code. By automating repetitive tasks, it enables faster development cycles and enhances productivity, particularly in scenarios requiring extensive unit testing or complex object construction.

TypeCode is available as both a console application and a WPF desktop application. It can be installed via winget for easy integration into your development workflow.

README

TypeCode

Develop c# code faster by generating .NET specific boilerplate code using reflection on assemblies. Available a console or wpf application.

Features

  • Generate specflow tables for classes
  • Generate fake constructor for unit-test class
  • Generate composer for strategies by interface
  • Generate mapper for two classes
  • Generate builder for class using builder pattern

Further documentation can be found here: Wiki

Dependencies & Acknowledgements

How to use

  • Make sure that you have installed ".NET 6.0 Desktop Runtime". If not, download it from Microsoft.

> :warning: Information: Windows Defender > Windows Defender blocks execution of the exe. > The application needs permission. > Right-click the exe and select properties. > Then enable/allow execution.

Zip

  • Download wpf or console application zip from releases
  • Extract zip
  • Start the .exe
  • Change configuration in settings

Installer (Wpf)

  • Download wpf msi installer from releases
  • Click the msi installer
  • Walk through the installation pages
  • Search with window search for TypeCode
  • Start the app
  • Change configuration in settings

Dev

  • Clone the git repository
  • Change the "localPackages" path in the nuget.config
  • {Token}: Z2hwX1hybmFLaVIyTm1zaGVWRVpqMjVLbHZsNTBjdldKYjMzQ2hPeQ== -> Convert Base64 back to Text First
  • Execute: dotnet nuget add source --username byCrookie --password {Token} --name byCrookie_Github --store-password-in-clear-text https://nuget.pkg.github.com/byCrookie/index.json

Contributing / Issues

All contributions are welcome! If you have any issues or feature requests, either implement it yourself or create an issue, thank you.

Donation

If you like this project, feel free to donate and support further development. Thank you.

  • Bitcoin (BTC) Donations using Bitcoin (BTC) Network -> bc1qygqya2w3hgpvy8hupctfkv5x06l69ydq4su2e2
  • Ethereum (ETH) Donations using Ethereum (ETH) Network -> 0x1C0416cC1DDaAEEb3017D4b8Dcd3f0B82f4d94C1
Versions
1.1.11
Website
License