Error with XmlSerializer

Jun 21, 2010 at 6:45 PM
Edited Jun 21, 2010 at 6:48 PM
StringBuilder stringBuilder = new StringBuilder();
XmlWriter writer = XmlWriter.Create(stringBuilder);
XmlSerializer xmlSerializer = new XmlSerializer(typeof(Status));
xmlSerializer.Serialize(writer, tweet);

Throw this:

Unable to generate a temporary class (result=1).
error CS0200: Property or indexer 'LinqToTwitter.User.CursorMovement' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'LinqToTwitter.Cursors.Next' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'LinqToTwitter.Cursors.Previous' cannot be assigned to -- it is read only

At

XmlSerializer xmlSerializer = new XmlSerializer(typeof(Status));


I dunno what Cursor do. But maybe it should be XmlIgnore.