Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- b = new Book("I promessi sposi", p = new Person("Alessandro", "Manzoni"), "Istituto Italiano di Arti Grafiche-Editore", 1827);
- b = new Book("Il nome della rosa", p2 = new Person("Umberto", "Eco"), "Bompiani", 1980);
- List<Person> Authors = new List<Person>();
- Authors.Add(p = new Person("Alessandro", "Manzoni"));
- Authors.Add(p = new Person("Umberto", "Eco"));
- Authors.Add(p = new Person("Galileo", "Galilei"));
- Person pp;
- pp = Authors.Find(x => x.Name == "Galileo");
- if (p is Person)
- {
- textBoxShow.Text = pp;
- }
- foreach (Person p in Authors)
- {
- //textBoxShow.Text = p;
- }
- //textBoxShow.Text = b.Title + " di " + p.Name + " " + p.Surname + " pubblicato da " + b.PublishingHouse + " e pubblicato il " + b.YearOfPublication;
- }
- catch (Exception exc)
- {
- MessageBox.Show(exc.Message);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement