public static List <Resturant> Deserialize() { Resturant r = new Resturant(); reader = new System.IO.StreamReader(InputFile); MyList <Resturant> my = new MyList <Resturant>(); XmlSerializer x = new XmlSerializer(my.GetType()); List <Resturant> list = (List <Resturant>)x.Deserialize(reader); reader.Close(); return(list); }
public List <ResturantRating> GetReviews(List <Resturant> list, string str) { Resturant r = GetResturant(list, str); return(r.Ratings); }