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 void Serialize(AutoCSer.XmlSerializer serializer) { serializer.TypeSerialize(Value == null ? 1 : 2); }