Skip to content

Why is DefaultSentenceBuilder private? #503

Open
@asherber

Description

@asherber

Is there a reason that DefaultSentenceBuilder is marked private? It would be much easier to customize SentenceBuilder if the class were public and could be inherited.

public class MySentenceBuilder: DefaultSentenceBuilder
{
   public override Func<string> UsageHeadingText => () => "Usage:";
}

SentenceBuilder.Factory = () => new MySentenceBuilder();

Another possibility would be to make SentenceBuilder non-abstract, move the default implementations there from DefaultSentenceBuilder, and then get rid of DefaultSentenceBuilder altogether.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions