Witam, chciałem moją grę uzupełnić o listę wyników graczy. Znalazłem bardzo ciekawy pomysł na rozwiązanie mojego problemu na tej stronie http://xnaessentials.com/tutorials/highscores.aspx. Mam jednak problem z tą linią:
// Convert the object to XML data and put it in the stream
XmlSerializer serializer = new XmlSerializer(typeof(HighScoreData));
serializer.Serialize(stream, data);
Otrzymuje taki błąd:
The type or namespace name 'XmlSerializer' could not be found (are you missing a using directive or an assembly reference?)
To przestrzenie nazw które wykorzystuje:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
Rozumiem że przykład który jest pod linkiem był pisany chyba na xboxa ale nie wierzę że nie można zrobić podobnego rozwiązania na WP7. Orientuje się ktoś jak rozwiązać ten problem? A może ma ktoś inny ciekawy pomysł na High Score?