Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Махлонов Дмитрий #210

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

maakhhh
Copy link

@maakhhh maakhhh commented Dec 16, 2024

No description provided.

TagCloud/TagCloud/Program.cs Outdated Show resolved Hide resolved
TagCloud/TagCloud/Program.cs Outdated Show resolved Hide resolved
TagCloud/TagCloud/Program.cs Outdated Show resolved Hide resolved
TagCloud/TagCloud/Program.cs Outdated Show resolved Hide resolved
TagCloud/TagCloud/Program.cs Outdated Show resolved Hide resolved
TagCloud/TagCloud/TextFilters/ITextFilter.cs Outdated Show resolved Hide resolved

namespace TagCloud.TextReader;

public record class TextReaderSettings(string Path, Encoding Encoding);

Choose a reason for hiding this comment

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

Не очень хорошо передавать напрямую текст, так как таким ридером не получится воспользоваться дважды для разных файлов. Тогда лучше здесь передавать класс настроек

Copy link
Author

Choose a reason for hiding this comment

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

тут не совсем понял, там же не текст передается, а класс настроек в котором уже лежит путь до файла

{
public List<string> ReadText()
{
return File.ReadLines(settings.Path, settings.Encoding)

Choose a reason for hiding this comment

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

Это уже похоже на объединение чтения и разделения на слова. Как тебе идея сделать отдельного разделителя и отдельного читателя?

TagCloud/TagCloud/TextReader/TxtTextReader.cs Outdated Show resolved Hide resolved
TagCloud/TagCloudClient/Clients/IClient.cs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants