An open API service indexing awesome lists of open source software.

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

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/