ex-ex-02-books/BooksApp/Books/Book.cs
github-classroom[bot] 49d2d70965
Initial commit
2025-06-03 15:21:16 +00:00

29 lines
565 B
C#

namespace Books;
public sealed record Book(string Title, string Author, string Publisher, int Year, string ISBN)
{
public bool CheckISBNValid()
{
try
{
CheckISBNValid(ISBN);
return true;
}
catch (ISBNValidationException ex)
{
Console.WriteLine(ex.Message);
return false;
}
}
public static void CheckISBNValid(string isbn)
{
const int Length = 13;
throw new NotImplementedException();
}
}
// TODO ISBNValidationException