コード例 #1
0
        public void DictionaryTest1()
        {
            var a = new TestClassA();

            a.SetValues();

            var serializedData_noMask = DictionarySerializer.Serialize(a);
            var a_NoMask = DictionarySerializer.Deserialize <TestClassA>(serializedData_noMask);

            var serializedData_Mask_1 = DictionarySerializer.Serialize(a, SerializationMaskType.Public);
            var a_Mask_1 = DictionarySerializer.Deserialize <TestClassA>(serializedData_Mask_1);

            var serializedData_Mask_2 = DictionarySerializer.Serialize(a, SerializationMaskType.Private);
            var a_Mask_2 = DictionarySerializer.Deserialize <TestClassA>(serializedData_Mask_2);

            var serializedData_Mask_1_2 = DictionarySerializer.Serialize(a, SerializationMaskType.Public | SerializationMaskType.Private);
            var a_Mask_1_2 = DictionarySerializer.Deserialize <TestClassA>(serializedData_Mask_1_2);
        }