public DataFieldInfo(DataTableInfo table)
 {
     if (table == null)
     {
         throw new ArgumentNullException(nameof(table));
     }
     this.Table = table;
     Parameters = new HierarchyDictionary <string, object>(table.Parameters);
 }
        public override void Write(DataTableInfo tableInfo)
        {
            Type objType;

            objType = Reader.DataTableInfoToType(tableInfo);

            sb.Clear();
            var objs = Reader.LoadDataObjects(tableInfo.Name, objType).ToArray();

            serializer.Serialize(objs, sb);
            string outputFile = Path.Combine(OutputDir, tableInfo.Name + ".json");

            File.WriteAllText(outputFile, sb.ToString(), new UTF8Encoding(false));
            Console.WriteLine($"output {BuildDataUtility.ToRelativePath(outputFile, OutputDir)}. table <{tableInfo.Name}> type <{objType.FullName}> data length <{objs.Length}>");
        }