-
Notifications
You must be signed in to change notification settings - Fork 482
Open
Labels
Description
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.
mmarinchenko