コード例 #1
0
ファイル: Person.cs プロジェクト: roro59/Tp1dotnet
 public static List <DBO.Person> ReadData(string filename)
 {
     DataAccess.ReadFile reader = new DataAccess.ReadFile(filename);
     using (reader)
     {
         reader.Initialize();
         return(reader.ReadData());
     }
 }
コード例 #2
0
ファイル: Person.cs プロジェクト: yoan-durand/TP
        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);

            }
        }