Attempting to serialize all the type information contained in an assembly. To test my code I'm using a SharpDevelop assembly. However, when running:
The code breaks with error
Why would it try to serialize interface ICanBeDirty ? All I need of the Type is MethodInfo, properties, etc.
Thanks all
Code:
StringWriter sw = new StringWriter();
XmlSerializer XmlSer = new XmlSerializer(typeof (Type[]));
XmlSer.Serialize(sw, TargetAss.GetTypes());
The code breaks with error
Code:
{"There was an error generating the XML document."}
{"Cannot serialize interface ICSharpCode.SharpDevelop.Gui.ICanBeDirty."}
Why would it try to serialize interface ICanBeDirty ? All I need of the Type is MethodInfo, properties, etc.
Thanks all