Click here to Skip to main content
16,011,805 members

Comments by connect2manas (Top 31 by date)

connect2manas 19-Nov-13 2:02am View    
i have a nested list class like as below
public class RestListInfo
{
public int ErrorCode { get; set; }
public string ErrorMessage { get; set; }
[XmlElement("RESTListInfoResponse")]
public List<restlistinforesponse> RESTInfoResponseList = new List<restlistinforesponse>();
}

public class RESTListInfoResponse
{
[XmlElement("TemplateEntity")]
public List<template>
connect2manas 19-Nov-13 1:47am View    
Hi RK,
Actually TemplateEntityList .count() has 1 record.
But templatesetset .count() has 14 records.
so looping happens only once.
connect2manas 19-Nov-13 1:42am View    
You are right.
TemplateEntityList .count() has 1 record.
But templatesetset .count() has 14 records.
so templatesetset[0].TemplateID=101;
templatesetset[1].TemplateID=200;
templatesetset[3].TemplateID=899;
as on display.
so how can i iterate all the values .please help me.
connect2manas 19-Nov-13 1:28am View    
TemplateEntityList contains 14 list.so templatesetset .count() also contains 14 list.
connect2manas 26-Sep-13 4:00am View    
thanks for your answer.
But there is no fix fields like c1,c2,cn .so that we can not define that.