Example #1
0
        internal ConverterValueChain()
        {
            _converterTypeDateTime = new ConverterValueDateTime();
            _converterTypeDecimal  = new ConverterValueDecimal();
            _converterTypeInt      = new ConverterValueInt();
            _converterTypeString   = new ConverterValueString();

            _converterTypeDateTime.SetNext(_converterTypeDecimal);
            _converterTypeDecimal.SetNext(_converterTypeInt);
            _converterTypeInt.SetNext(_converterTypeString);
        }
 public void SetNext(ConverterValueBase converterType) => _next = converterType;