static void Main(string[] args) { string filePath = @"C:\Users\zhangroc\app\data\DB.csv"; RecordStructure rs = new RecordStructure(filePath); List <PeopleInfo> recordlist = new List <PeopleInfo>(); Boolean isfind = rs.Query("程中", ref recordlist); if (isfind) { foreach (PeopleInfo p in recordlist) { Console.WriteLine(p.ToString()); } } }
static void Main(string[] args) { string filePath = @"C:\Users\zhangroc\app\data\DB.csv"; RecordStructure rs = new RecordStructure(filePath); List<PeopleInfo> recordlist = new List<PeopleInfo>(); Boolean isfind = rs.Query("程中", ref recordlist); if ( isfind ) { foreach (PeopleInfo p in recordlist) { Console.WriteLine(p.ToString()); } } }