Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created July 2, 2018 21:07
Show Gist options
  • Save christiannagel/92b7dacf748c364af975e3f18346a8c8 to your computer and use it in GitHub Desktop.
Save christiannagel/92b7dacf748c364af975e3f18346a8c8 to your computer and use it in GitHub Desktop.
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