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); } } }
internal static void Serialize(AutoCSer.XmlSerializer serializer, CustomClass value) { serializer.CharStream.Write(value.Value == null ? '1' : '2'); }
internal void Serialize(AutoCSer.XmlSerializer serializer) { serializer.TypeSerialize(Value == null ? 1 : 2); }