public override void Save(Tweets tweets, StreamWriter stream) { XmlSerializer xmlSerializer = new XmlSerializer(tweets.GetType()); xmlSerializer.Serialize(stream, tweets); }