https://github.com/aksoftware98/dynamic-class-generation
This repo is a demonstration for how to dynamically generates a class at runtime and create instances on top of it
https://github.com/aksoftware98/dynamic-class-generation
Last synced: about 1 year ago
JSON representation
This repo is a demonstration for how to dynamically generates a class at runtime and create instances on top of it
- Host: GitHub
- URL: https://github.com/aksoftware98/dynamic-class-generation
- Owner: aksoftware98
- Created: 2021-06-21T13:15:33.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-21T13:27:06.000Z (about 5 years ago)
- Last Synced: 2025-02-09T07:34:07.190Z (over 1 year ago)
- Language: C#
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dynamic-class-generation
This repo is a demonstration for how to dynamically generates a class at runtime and create instances on top of it.
In this demo I use reflection to generate a class at runtime then create instances out of this class then serialize the result and print it on the console as a JSON object.
## Thanks for the following articles:
https://stackoverflow.com/questions/3862226/how-to-dynamically-create-a-class
https://www.c-sharpcorner.com/UploadFile/87b416/dynamically-create-a-class-at-runtime/