Classic ToString converting algorithm using division (O[n^2]).
상속: StringConverterBase
예제 #1
0
        // .cctor
        static StringConvertManager()
        {
            // Create new pow2 converter instance
            IStringConverter pow2StringConverter = new Pow2StringConverter();

            // Create new classic converter instance
            IStringConverter classicStringConverter = new ClassicStringConverter(pow2StringConverter);

            // Fill publicity visible converter fields
            ClassicStringConverter = classicStringConverter;
            FastStringConverter = new FastStringConverter(pow2StringConverter, classicStringConverter);
        }
예제 #2
0
        // .cctor
        static StringConvertManager()
        {
            // Create new pow2 converter instance
            IStringConverter pow2StringConverter = new Pow2StringConverter();

            // Create new classic converter instance
            IStringConverter classicStringConverter = new ClassicStringConverter(pow2StringConverter);

            // Fill publicity visible converter fields
            ClassicStringConverter = classicStringConverter;
            FastStringConverter    = new FastStringConverter(pow2StringConverter, classicStringConverter);
        }