Пример #1
0
 public void AddBook(Book book)
 {
     booklist.Add(book);
 }
Пример #2
0
 internal void PrintPrice(Book book)
 {
     Console.WriteLine("Price: {0}$", book.Price);
 }
Пример #3
0
 static void PrintTitle(Book b)
 {
     Console.WriteLine("{0}", b.Title);
 }
Пример #4
0
 internal void AddBookToTotal(Book book)
 {
     priceTotal += book.Price;
 }