Пример #1
0
        public static void Main(string[] args)
        {
            //BsonSerializer.RegisterGenericSerializerDefinition(typeof(Tuple<>), typeof(TupleSerializer<>));

            //BsonSerializer.RegisterGenericSerializerDefinition(typeof(Tuple<,>), typeof(TupleSerializer<,>));

            //BsonSerializer.RegisterGenericSerializerDefinition(typeof(Tuple<,,>), typeof(TupleSerializer<,,>));

            //BsonSerializer.RegisterGenericSerializerDefinition(typeof(Tuple<,,,>), typeof(TupleSerializer<,,,>));

            ValueTupleSerializerRegistry.Register();

            CreateHostBuilder(args).Build().Run();
        }
 public RegistrationFixture()
 {
     ValueTupleSerializerRegistry.Register();
 }