Пример #1
0
 /// <summary>
 /// Adds the items.
 /// </summary>
 /// <param name="numberOfValues">The number of values.</param>
 /// <param name="names">The names of items.</param>
 /// <param name="values">The values of items.</param>
 public void AddItems(int numberOfValues, string[] names, string[] values)
 {
     jwr.updateSize(numberOfValues);
     jwr.AddNames(names);
     jwr.AddValues(values);
     jwr.start();
     makeFile();
 }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JSONMaker"/> class.
        /// </summary>
        /// <param name="numberOfValues">The number of values.</param>
        /// <param name="names">The names.</param>
        /// <param name="values">The values.</param>
        /// <param name="path">The path to store file.</param>
        public JSONMaker(int numberOfValues, string[] names, string[] values, string path)
        {
            numofvals = numberOfValues;
            this.path = path;

            jwr = new Writer.JsonWriter(numofvals, names, values);
            //jwr.AddNames(names);
            //jwr.AddValues(values);
            jwr.start();
            makeFile();
        }