Example #1
0
        public void Action()
        {
            Users user = new Users();
            user.Id = 12;
            user.UserName = @"柳

            "",'[]
            永法";

            string aaa = SerializeHelper.ToBinary(user);
            File.AppendAllText("bin.txt", aaa);
        }
Example #2
0
        public void Action()
        {
            Users user = new Users();
            user.Id = 12;
            user.UserName = @"柳

            "",'[]
            永法";
            user.IsLive = true;

            string aaa = SerializeHelper.DataContractSerializerToJson(user);
            File.AppendAllText("json.txt", aaa);
        }
Example #3
0
        public void Action()
        {
            Users user = new Users();
            user.Id = 12;
            user.UserName = @"柳

            "",'[]
            永法";
            user.IsLive = true;

            string aaa = SerializeHelper.ToSoap(user);
            File.AppendAllText("soap.txt", aaa);
        }