I'm consuming a RESTful web service by using RESTSharp. One of the XML elements looks like the following:
<temp_c units="°C">7.9</temp_c>
And the C# class POCO is as follows:
public class Test
{
public TempC temp_c { get; set; }
}
public class TempC
{
public string units { get; set; }
public string value { get; set; }
}
When I use RESTSharp, I get the TempC
object populated with units but not with an actual value; e.g. 7.9. The value is NULL.