I am writing a Generic class that attempts to serialize an object of Type T as XML. Unfortunately (as I'm sure you know) not all objects can successfully be serialized as XML hence I would like to be able to write a constraint that specifies T can only be a class that is XML Serializable. Is this at all possible?
Pretty sure the answer to this is "no" but figured I would ask anyway in case there's something I have missed.