Saving a nested list?Solved
My mind hurts trying to figure this out...i need to save into the list items how so i go about that.

        public class vipData
        {
            public int item;
            public ulong skinid;
            public int amount;
            public string name;
            public string displayName;
            public string Permission;
        }



        class IEntity
        {
            public Dictionary iEntity = new Dictionary();


            public IEntity() { }
        }
        class IInfo
        {
            public List items = new List();


            public IInfo() { }
            public IInfo(long cd)
            {
            }
        }
        void SaveIData()
        {
            I.WriteObject(iData);
        }

class IEntity
{
public Dictionary<string, IInfo> iEntity = new Dictionary<string, IInfo>();

public IEntity() { }
}
class IInfo
{
public List<vipData> items = new List<vipData>();

public IInfo() { }
public IInfo(long cd)
{
}
}
void SaveIData()
{
I.WriteObject(iData);
}

Merged post

So what im trying to do is i need a dict.  with a list name  then add mutipal items to that list name.
so i can add say vip1 = list items for vip1,  vip2 = list all items for vip2
I dont think you need all those classes. just use:

edit: I tried using a code block, but is screwing up my code, so look here: https://pastebin.com/z78QKHPa
 
Thank you i got it.
Locked automatically