public static List <DBO.Person> ReadData(string filename) { DataAccess.ReadFile reader = new DataAccess.ReadFile(filename); using (reader) { reader.Initialize(); return(reader.ReadData()); } }
public static List<DBO.Person> ReadData(string filename) { try { DataAccess.ReadFile read = new DataAccess.ReadFile(filename); return read.ReadData(); } catch (Exception e) { DataAccess.ReadFile dispo = new DataAccess.ReadFile(""); dispo.Dispose(); throw (e); } }