private BookSingleton()
 {
     Author      = "Gamma, Helm, Johnson and Vlissides";
     Title       = "Design Patterns";
     Book        = null;
     IsLoanedOut = false;
 }
 public static BookSingleton BorrowBook()
 {
     if (!IsLoanedOut)
     {
         if (Book == null)
         {
             Book = new BookSingleton();
         }
         IsLoanedOut = true;
         return(Book);
     }
     return(null);
 }
 public void ReturnBook(BookSingleton returnedBook)
 {
     IsLoanedOut = false;
 }