Skip to content

Instantly share code, notes, and snippets.

@syonbori
Created August 29, 2011 20:25
Show Gist options
  • Save syonbori/1179311 to your computer and use it in GitHub Desktop.
Save syonbori/1179311 to your computer and use it in GitHub Desktop.
patch for TIG error on empty <following></following> elements in User object from XML
Index: TwitterService.cs
===================================================================
--- TwitterService.cs (revision 733)
+++ TwitterService.cs (working copy)
@@ -1924,8 +1924,16 @@
[XmlElement("status")]
public Status Status;
[XmlElement("following")]
- public Boolean Following;
+ private String _following_str;
+// [XmlElement("following")]
+// public Boolean Following;
+ public Boolean Following {
+ get{
+ return (_following_str == "true");
+ }
+ }
+
private static Object _syncObject = new object();
private static XmlSerializer _serializer = null;
static User()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment