Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You could follow this sample,</p> <p><strong>Class for project data(id, name, url)</strong></p> <pre><code>public class ObjectList { public ObjectList(string id1, string name1, string url1) { id = id1; name = name1; url = url1; } public string id { get; set; } public string name { get; set; } public string url { get; set; } } </code></pre> <p><strong>Class for array items(projects)</strong></p> <pre><code> public class RootObj { public string objectType { get; set; } public List&lt;ObjectList&gt; objectList { get; set; } } </code></pre> <p>Once you have got the object based array, here is the sample you can follow to loop through the projects.</p> <pre><code>private void ManipulateProjects() { object[] projects = new object[5]; RootObj item1Obj = new RootObj(); List&lt;ObjectList&gt; item1List = new List&lt;ObjectList&gt;(); item1List.Add(new ObjectList("1", "Rone1", "htt://google1.com")); item1List.Add(new ObjectList("2", "Rone2", "htt://google2.com")); item1List.Add(new ObjectList("3", "Rone3", "htt://google3.com")); item1Obj.objectList = item1List; projects[0] = item1Obj; RootObj item2Obj = new RootObj(); List&lt;ObjectList&gt; item2List = new List&lt;ObjectList&gt;(); item2List.Add(new ObjectList("10", "Rone10", "htt://google10.com")); item2List.Add(new ObjectList("12", "Rone12", "htt://google20.com")); item2List.Add(new ObjectList("13", "Rone13", "htt://google30.com")); item2Obj.objectList = item2List; projects[1] = item2Obj; //Once you have your formatted array of projects then it is just a matter of looping through it. foreach (RootObj item in projects) { if (item == null) continue; List&lt;ObjectList&gt; items = item.objectList; foreach (ObjectList item1 in items) { //Response.Write(item1.id + " " + item1.name + " " + item1.url + "&lt;br /&gt;"); } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload