示例#1
0
 internal void ToXml(AutoCSer.XmlSerializer serializer)
 {
     if (MemberMap == null || MemberMap.IsDefault)
     {
         serializer.TypeSerialize(Value);
     }
     else
     {
         AutoCSer.Metadata.MemberMap memberMap = serializer.SetCustomMemberMap(MemberMap);
         try
         {
             serializer.TypeSerialize(Value);
         }
         finally { serializer.SetCustomMemberMap(memberMap); }
     }
 }
示例#2
0
 internal static void Serialize(AutoCSer.XmlSerializer serializer, CustomClass value)
 {
     serializer.CharStream.Write(value.Value == null ? '1' : '2');
 }
示例#3
0
 internal void Serialize(AutoCSer.XmlSerializer serializer)
 {
     serializer.TypeSerialize(Value == null ? 1 : 2);
 }