string myClass =" public class AcademicTestQuestion { public int Id { get; set; } public string Content { get; set; } public int ContentType { get; set; } public string Descrtionption { get; set; } public bool IsMandatory { get; set; } public bool IsMultiChoice { get; set; } public DateTime InsertDate { get; set; } public DateTime? UpdateDate { get; set; } public bool IsActive { get; set; } public int AcademicTestPageId { get; set; } } ";
for readability formatted below
string myClass ="
public class AcademicTestQuestion
{
public int Id { get; set; }
public string Content { get; set; }
public int ContentType { get; set; }
public string Descrtionption { get; set; }
public bool IsMandatory { get; set; }
public bool IsMultiChoice { get; set; }
public DateTime InsertDate { get; set; }
public DateTime? UpdateDate { get; set; }
public bool IsActive { get; set; }
public int AcademicTestPageId { get; set; }
}
";
How can i create a instance of above string representation of class at run time and use?
I'm trying to generating the table structure in to classes at run time.