标签:
/// <summary> /// 查找乘客信息 /// </summary> /// <param name="name">乘客名称</param> /// <returns>Passenger</returns> public static Passenger GetPassengerByName(string name) { return PassengerArry.Find(delegate(Passenger p) { return p.Passenger_name == name; }); } /// <summary> /// 查找乘客信息 /// </summary> /// <param name="name">乘客名称</param> /// <returns>Passenger</returns> public static Passenger GetPassengerByName(string idCard) { return PassengerArry.Find((p) => { return p.PassengerIdNo == idCard; }); }
标签:
原文地址:http://blog.csdn.net/hutao1101175783/article/details/45271263