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
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Eric.Dotnet.Class.Constructor --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
Clone the repository:
-
gh repo clone Erkhemee0908/constructor.sqr cd constructor.sqr
Restore dependencies:
dotnet restore
Run the project:
dotnet run <ClassFileName.cs>
Usage
- Provide your C# class file as input.
- The program will parse the class file and generate a constructor method.
- 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 | Versions 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.