private byte[] SerializeContent(object obj) { return(MyXmlSerializer.Serialize(obj, MyPublicationSession.namespaces)); }
public static void Serialize(Type type, XmlWriter writer, object obj) { MyXmlSerializer serializer = GetSerializerFromList(type); serializer.Serialize(writer, obj); }