I have a UI from where we are adding following values in a table Fields
- ProductName
- ProductId
- ProductCode
I have a existing class Product with some existing properties
public class Product
{
public string ProductID { get; set; }
//product in a product search listing
public string StoreName { get; set; }
public string SearchToken { get; set; }
}
I am looking for a method which will add properties in existing class Product at run time (dynamically) when user adds values in a table Fields
Aucun commentaire:
Enregistrer un commentaire