c# - Deserialization NOT from a file -


i have problem deserialization. deserialize method takes stream or text reader argument, , xml not stored file, can't read (or, don't know how read it).

in fact, receive xml web services method returns dataset. can have xml use of "getxml" method, cant use deserialize()

of course, use xmlwriter create xml file data , read file after deserialize, doesn't method me.

a little appreciated !

use stringreader class.

using(var reader = new stringreader(dataset.getxml())) {    ..... } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -