Hi Team,
I have a class named vendorMasterDTO.cs where I have written the below code.
public class VendorMasterDTO
{
public string Country { get; set; }
public string VendorCode { get; set; }
public string VendorName { get; set; }
public VendorEmailArray[] VEmailID { get; set; }
public class VendorEmailArray
{
public string VendorEmailID { get; set; }
}
}
this is my code where I am not able to access the array of VEmailID-
foreach (DataRow dr in dt.Tables[0].Rows)
{
setVendorDetails[i] = new VendorMasterDTO();
setVendorDetails[i].Country = Convert.ToString(dr["Country"]);
setVendorDetails[i].VendorCode = Convert.ToString(dr["VendorCode"]);
setVendorDetails[i].VendorName = Conv ...
Go to the complete details ...