コード例 #1
0
        /// <summary>
        /// Set currency directory
        /// </summary>
        /// <param name="currencyDictionary">Currency dictionary</param>
        /// <returns>CurrencyTransformerBuilder instance</returns>
        internal CurrencyTransformerBuilder SetCurrencyDictionary(
            ICurrencyDictionary currencyDictionary)
        {
            _currencyDictionary = currencyDictionary;

            return(this);
        }
コード例 #2
0
 public GenericCurrencyTransformer(
     INumberTransformer numberTransformer,
     ICurrencyDictionary currencyDictionary,
     INounInflector nounInflector)
 {
     _numberTransformer  = numberTransformer;
     _currencyDictionary = currencyDictionary;
     _nounInflector      = nounInflector;
 }
コード例 #3
0
        protected Algorithm(ICurrencyDictionary dictionary, ICurrencyDeflation currencyDeflation, string splitDecimal, bool withStems)
        {
            if (dictionary == null)
            {
                throw new ArgumentNullException(nameof(dictionary));
            }

            if (currencyDeflation == null)
            {
                throw new ArgumentNullException(nameof(currencyDeflation));
            }

            this.dictionary        = dictionary;
            this.currencyDeflation = currencyDeflation;
            this.splitDecimal      = splitDecimal;
            this.withStems         = withStems;
        }
コード例 #4
0
 public CurrencyAlgorithm(ICurrencyDictionary dictionary, ICurrencyDeflation currencyDeflation, string splitDecimal, bool stems) :
     base(dictionary, currencyDeflation, splitDecimal, stems)
 {
 }