I Serialized Liaison and Saved it in text file in The Isolated Store
I want to Deserialize it back as Contact
我对该法进行了审判,但我有错误:
Error 1 The type Microsoft.Phone.UserData.Contact has no constructors
using (var reader = new StreamReader(stream))
{
var serializer = new XmlSerializer(typeof(Contact));
return reader.EndOfStream
? new Contact()// error
: (Contact)serializer.Deserialize(reader);
}
is there another solution to get it back ?