Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Pull Request for Varga Vajk #4

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

VajkVarga
Copy link

No description provided.


public BookManager(List<Book> books)
{
Books = books.Distinct().ToList();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HashSet is lehetne éppen, akkor a Distinct és a ToList megspórolható, illetve későbbi bővítésnél is Distinct maradna.

{
internal record Book
{
public Guid Id { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Az ID-t biztos állítani kell létrehozás után is ?

{
internal static class FileReader
{
public static List<Book> ReadAllBooks()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ezt a metódust pl több kisebbre lehetne bontani szerintem.


namespace Library.Serializer
{
internal class CustomDateJsonConverter : JsonConverter<DateTime>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants