예제 #1
0
            static ObjectFormatter()
            {
                new StringFormatter().Register();
                new Int64Formatter().Register();
                new Int32Formatter().Register();
                new Int16Formatter().Register();
                new ByteFormatter().Register();
                new BooleanFormatter().Register();
                new CharFormatter().Register();
                new DateTimeFormatter().Register();
                new PairFormatter().Register();
                new TripletFormatter().Register();
                new ArrayListFormatter().Register();
                new HashtableFormatter().Register();
                new ObjectArrayFormatter().Register();
                new UnitFormatter().Register();
                new FontUnitFormatter().Register();

                new ColorFormatter().Register();

                enumFormatter = new EnumFormatter();
                enumFormatter.Register();

                typeFormatter = new TypeFormatter();
                typeFormatter.Register();

                singleRankArrayFormatter = new SingleRankArrayFormatter();
                singleRankArrayFormatter.Register();

                typeConverterFormatter = new TypeConverterFormatter();
                typeConverterFormatter.Register();

                binaryObjectFormatter = new BinaryObjectFormatter();
                binaryObjectFormatter.Register();
            }
예제 #2
0
			static ObjectFormatter ()
			{			
				new StringFormatter ().Register ();
				new Int64Formatter ().Register ();
				new Int32Formatter ().Register ();
				new Int16Formatter ().Register ();
				new ByteFormatter ().Register ();
				new BooleanFormatter ().Register ();
				new CharFormatter ().Register ();
				new DateTimeFormatter ().Register ();
				new PairFormatter ().Register ();
				new TripletFormatter ().Register ();
				new ArrayListFormatter ().Register ();
				new HashtableFormatter ().Register ();
				new ObjectArrayFormatter ().Register ();
				new UnitFormatter ().Register ();
				new FontUnitFormatter ().Register ();
				new IndexedStringFormatter ().Register ();
				new ColorFormatter ().Register ();

				enumFormatter = new EnumFormatter ();
				enumFormatter.Register ();

				typeFormatter = new TypeFormatter ();
				typeFormatter.Register ();

				singleRankArrayFormatter = new SingleRankArrayFormatter ();
				singleRankArrayFormatter.Register ();

				typeConverterFormatter = new TypeConverterFormatter ();
				typeConverterFormatter.Register ();

				binaryObjectFormatter = new BinaryObjectFormatter ();
				binaryObjectFormatter.Register ();
			}