Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I get this into a string variable?
Message
De
09/05/2008 16:59:15
Mike Sue-Ping
Cambridge, Ontario, Canada
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01316145
Message ID:
01316166
Vues:
23
>>Newbie question. I have the following snippet of C# code that writes the contents of "SearchResponse" to a file. How can I get the contents into a string variable instead?
>>
>
>Try something like this:
>
>
>XmlSerializer xmlizer = new XmlSerializer(typeof(SearchResponse));
>StringWriter sw = new StringWriter();
>xmlizer.Serialize(sw, iw.SearchResponse);
>
Thanks Paul!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform