title: Deserialize Unknown Type
body: <p>I have the following XML:</p>
  
  <pre><code>&lt;property name="someName" value="someValue" /&gt;
  </code></pre>
  
  <p>Alternatively, this could be:</p>
  
  <pre><code>&lt;property name="someName" value="5" /&gt;
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>&lt;property name="someName" value="true" /&gt;
  </code></pre>
  
  <p>And so on...</p>
  
  <pre><code>[Serializable]
  [XmlType("property")]
  public class Property
  {
      [XmlAttribute("name")]
      public string Name { get; set; }
      [XmlAttribute("value")]
      public object Value { get; set; }
  
      public Property()
      {
  
      }
  }
  </code></pre>
  
  <p>The above code does not work. I can use string, or anything specific as long as it is always that specific type. I was hoping object would allow any known type work.</p>