Created
July 2, 2018 21:07
-
-
Save christiannagel/92b7dacf748c364af975e3f18346a8c8 to your computer and use it in GitHub Desktop.
Book class in a shared .NET Standard Library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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