public VirtualCsv(Csv parent, List <string> headers, List <List <string> > values) : base() { this.parent = parent; var types = new List <string>(); for (var i = 0; i < headers.Count; i++) { var header = headers[i]; if (!parent.HasHeader(header)) { throw new Exception(string.Format("The header: {0} does not exist in parent csv", header)); } var type = parent.GetHeaderType(header); types.Add(type); } this.types = types; this.headers = headers; this.values = values; Init(); }
public bool HasHeader(string header) { return(parent.HasHeader(header)); }