public static void Main(string[] args) { #if NETFULL NetSerializer.Serializer instance = new NetSerializer.Serializer(new[] { typeof(Foo), typeof(SerializerWrapper) }); NETSerializer ns = new NETSerializer(instance); SerializerFactory.AddSerializer(new NETSerializer(instance), "NET"); #endif SerializerFactory.AddSerializer <JilSerializer>("jil"); SerializerFactory.AddSerializer <JsonNetSerializer>("jsonNet"); SerializerFactory.AddSerializer <ProtoBufSerializer>("ProtoBuf"); TestExcute.Excute(typeof(Program)); }
static void Main(string[] args) { Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); TestExcute.Excute(typeof(Program)); }