Eric.Dotnet.Class.Constructor 1.0.1

dotnet tool install --global Eric.Dotnet.Class.Constructor --version 1.0.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Eric.Dotnet.Class.Constructor --version 1.0.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Eric.Dotnet.Class.Constructor&version=1.0.1
                    
nuke :add-package Eric.Dotnet.Class.Constructor --version 1.0.1
                    

Constructor^2

Constructor Generator for C# Classes

Overview

The Constructor Generator for C# Classes is a simple tool designed for generating constructor methods in C# class files. This project serves as a learning and experimenting ground for C# programming, providing a utility that automates the creation of constructors based on the fields present in a class.

Features

  • Parses C# class files.
  • Generates constructors for C# classes.
  • Supports basic data types and access modifiers.

Getting Started

Prerequisites

Installation

  1. Clone the repository:

  2. gh repo clone Erkhemee0908/constructor.sqr
    cd constructor.sqr
    
  3. Restore dependencies:

    dotnet restore
    
  4. Run the project:

    dotnet run <ClassFileName.cs>
    

Usage

  1. Provide your C# class file as input.
  2. The program will parse the class file and generate a constructor method.
  3. Review the generated constructor and modify it as needed.

Example:

dotnet run <ClassFileName.cs>

Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue. Pull requests are encouraged.


Note: This project is for educational and experimental purposes. Use generated code responsibly, and always review and test the output thoroughly.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.1 272 12/28/2023
1.0.0 183 12/28/2023