Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created July 2, 2018 21:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Book class in a shared .NET Standard Library
public class Book
{
public Book() { }
public Book(int bookId, string title, string publisher)
=> (BookId, Title, Publisher) = (bookId, title, publisher);
public int BookId { get; set; }
public string Title { get; set; }
public string Publisher { get; set; }
public override string ToString() => Title;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment