private static Node NodeFromTable(string tableName, string filename, KindOfTable knd, out ITableToModel rep) { INodeBilder nodeBld = new NodeBilder(); rep = new TableToModel(nodeBld); IReader rd = new WrdReader(); DataTable tbl = rd.GetTable(2, filename).Result; var colNumber = new List <int> { 0, 1, 2, 3, 4 }; var tmpNumber = new List <int> { 5, 6 }; rep.TableToModelConv(tableName, tbl, colNumber, tmpNumber, "сут", knd); Node node = (NodeBilder)nodeBld; return(node); }