static void Mainzz(string[] args)
        {
            var clientConfig = new ClientConfig();

            clientConfig.GetNetworkConfig().AddAddress("127.0.0.1");
            clientConfig.GetSerializationConfig().AddDataSerializableFactory(1, new MyDataSerializableFactory());


            IHazelcastInstance client = HazelcastClient.NewHazelcastClient(clientConfig);
            //All cluster operations that you can do with ordinary HazelcastInstance
            IMap <string, DataSerializableType> map = client.GetMap <string, DataSerializableType>("imap");

            ISerializationService service = ((HazelcastClientProxy)client).GetSerializationService();

            object obj   = new DataSerializableType(1000, 1000);
            long   start = Clock.CurrentTimeMillis();
            var    data  = service.ToData(obj);

            var dataSerializableType = service.ToObject <DataSerializableType>(data);

            long diff = Clock.CurrentTimeMillis() - start;

            Console.WriteLine("Serialization time:" + diff);

            Console.ReadKey();
        }
        static void Mainzz(string[] args)
        {
            var clientConfig = new ClientConfig();
            clientConfig.GetNetworkConfig().AddAddress("127.0.0.1");
            clientConfig.GetSerializationConfig().AddDataSerializableFactory(1, new MyDataSerializableFactory());

            IHazelcastInstance client = HazelcastClient.NewHazelcastClient(clientConfig);
            //All cluster operations that you can do with ordinary HazelcastInstance
            IMap<string, DataSerializableType> map = client.GetMap<string, DataSerializableType>("imap");

            ISerializationService service = ((HazelcastClientProxy)client).GetSerializationService();

            object obj=new DataSerializableType(1000,1000);
            long start = Clock.CurrentTimeMillis();
            var data = service.ToData(obj);

            var dataSerializableType = service.ToObject<DataSerializableType>(data);

            long diff = Clock.CurrentTimeMillis()- start;

            Console.WriteLine("Serialization time:"+diff);

            Console.ReadKey();
        }