I want to store my model class as a variable and use it in all my code dynamically. For example I have something like this:
IEnumerable<Student> students = GetAllStudents();
Normally I must always declare and retype Student class. But I need to declare it only once and after that use it dynamically in my code. Simply I want to do something like this:
Student dynamicType;
So after that can be possible:
IEnumerable<dynamicType> students = GetAllStudents();
Can you help me to find right solution? Is it possible to do something like this? Thank you