Ejemplo n.º 1
0
 private void deSerialize(AutoCSer.BinaryDeSerializer deSerializer)
 {
     AutoCSer.Metadata.MemberMap oldMemberMap = deSerializer.SetCustomMemberMap(MemberMap);
     try
     {
         deSerializer.TypeDeSerialize(ref Value);
     }
     finally { MemberMap = (AutoCSer.Metadata.MemberMap <valueType>)deSerializer.SetCustomMemberMap(oldMemberMap); }
 }
Ejemplo n.º 2
0
        private void deSerialize(AutoCSer.BinaryDeSerializer deSerializer)
        {
            MemberMap memberMap = deSerializer.SetCustomMemberMap(MemberMap);

            try
            {
                deSerializer.TypeDeSerialize(ref Value);
            }
            finally { MemberMap = deSerializer.SetCustomMemberMap(memberMap); }
        }
Ejemplo n.º 3
0
        private unsafe void deSerialize(AutoCSer.BinaryDeSerializer deSerializer)
        {
            switch (deSerializer.TypeDeSerialize <int>())
            {
            case 1: Value = null; return;

            case 2: Value = string.Empty; return;

            default: deSerializer.MoveRead(-1); return;
            }
        }