Beispiel #1
0
        void IWriteContext.Append(string key, string[] subkeys, string[] subvalues)
        {
            System.Data.DataTable dt = new DataTable();

            for (int i = 0; i <= subkeys.Length - 1; i++)
            {
                dt.Columns.Add(subkeys[i]);
            }
            System.Data.DataRow row = dt.NewRow();
            for (int i = 0; i <= subvalues.Length - 1; i++)
            {
                row[i] = subvalues[i];
            }
            dt.Rows.Add(row);
            //
            IWriteContext ins = this;

            ins.Append(key, dt);
        }
Beispiel #2
0
 public void Write(string key, string value)
 {
     wc.Append(key, value);
 }
Beispiel #3
0
 /// <summary>
 /// 写入json
 /// </summary>
 /// <param name="flag">标记</param>
 /// <param name="message">信息</param>
 public void Write(string flag, string message)
 {
     WriteContext.Append(flag, message);
 }