void ITomlObjectVisitor.Visit(TomlArray a)
        {
            var clrArray    = new object[a.Length];
            var extractItem = new ExtractItemValue();

            for (int i = 0; i < a.Items.Length; i++)
            {
                a[i].Visit(extractItem);
                clrArray[i] = extractItem.Item;
            }

            this.table[this.currentKey] = clrArray;
        }
            public void Visit(TomlArray a)
            {
                var clrArray    = new object[a.Length];
                var extractItem = new ExtractItemValue();

                for (int i = 0; i < a.Items.Length; i++)
                {
                    a[i].Visit(extractItem);
                    clrArray[i] = extractItem.Item;
                }

                this.Item = clrArray;
            }
Esempio n. 3
0
 public static TomlArray AddArray(this TomlTable table, string key, TomlArray a)
 {
     table.AddRow(new TomlKey(key), a);
     return(a);
 }