exces a Generic.List item C#

i have list’s in list’s

private UserData myData ;
public class UserData 
 {
    // We have to define a default instance of the structure
	public List<DemoData>iUser = new List<DemoData>();
    public List<ScriptData>iScript = new List<ScriptData>();
	public List<ArrayScriptData>iArrayScript = new List<ArrayScriptData>();
}

and

[System.Serializable]
public class DemoData
{
	 public String name;
	 int id;
}

how do i fill in the name

demonicmetal cs

DemoData data = new DemoData();
data.name = “the name”;
data.id = 99999;
iUser.Add(data);

and later on you can have something like:
iUser[0].name = “zxcv”; (as long as you have items in it, it acts like an array)

thanks it work

demonicmetal cs