Skip to content

Commit

Permalink
Merge pull request #1330 from bender2k14/#1328_syntatically_optional_…
Browse files Browse the repository at this point in the history
…IFormatProvider

made formatProvider optional in the constructor of MessageTemplateTextFormatter
  • Loading branch information
nblumhardt committed Jun 24, 2019
2 parents e6936a1 + fa1bfae commit 69f8c14
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -41,7 +41,7 @@ public class MessageTemplateTextFormatter : ITextFormatter
/// <param name="outputTemplate">A message template describing the
/// output messages.</param>
/// <param name="formatProvider">Supplies culture-specific formatting information, or null.</param>
public MessageTemplateTextFormatter(string outputTemplate, IFormatProvider formatProvider)
public MessageTemplateTextFormatter(string outputTemplate, IFormatProvider formatProvider = null)
{
if (outputTemplate == null) throw new ArgumentNullException(nameof(outputTemplate));
_outputTemplate = new MessageTemplateParser().Parse(outputTemplate);
Expand Down

0 comments on commit 69f8c14

Please sign in to comment.