Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PseudoNumberToWordsConverter"/> class.
 /// </summary>
 /// <param name="pseudoHumanizer">The <see cref="PseudoHumanizer"/> to use.</param>
 /// <exception cref="ArgumentNullException">
 /// <paramref name="pseudoHumanizer"/> is <see langword="null"/>.
 /// </exception>
 public PseudoNumberToWordsConverter(PseudoHumanizer pseudoHumanizer)
 {
     Transformer = pseudoHumanizer ?? throw new ArgumentNullException(nameof(pseudoHumanizer));
     Inner       = Configurator.NumberToWordsConverters.ResolveForCulture(pseudoHumanizer.BaseLocale);
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PseudoCollectionFormatter"/> class.
 /// </summary>
 /// <param name="pseudoHumanizer">The <see cref="PseudoHumanizer"/> to use.</param>
 /// <exception cref="ArgumentNullException">
 /// <paramref name="pseudoHumanizer"/> is <see langword="null"/>.
 /// </exception>
 public PseudoCollectionFormatter(PseudoHumanizer pseudoHumanizer)
 {
     Transformer = pseudoHumanizer ?? throw new ArgumentNullException(nameof(pseudoHumanizer));
     Inner       = Configurator.CollectionFormatters.ResolveForCulture(pseudoHumanizer.BaseLocale);
 }