Although most of the examples that you see in MSDN and elsewhere online assume a hardcoded type for an object being serilized, it's fairly easy to use a generic method that's parameterized for the object to be serialized:void SerializeToXml<T>(T Read More