je cherche a serialiser une classe
Code:
1
2
3
4
5
6 [Serializable] public classLexer:Module {// ... }//
mais le runtime me retourneCode:
1
2
3
4
5
6 XmlSerializer serialiseur = newXmlSerializer(typeof(Lexer)); TextWriter writer = newStreamWriter("d:\\_DB_\\Dalbe\\monfichier.xml"); serialiseur.Serialize(writer, _lexer); writer.Close();
qu'est ce que ca peut etre ?Code:
1
2
3
4There was an error generating the XML document... Check the InnerException property for more information.