title: How to fetch value from an ExtensionDataObject of a wcf reponse
body: <p>I have a WCF service which returns ExtensionDataObject during runtime as attached snapshot:
  Im struck with fetching value for these objects. Could anyone please help here:</p>
  
  <p>Have tried with below code using reflection, which throws Parameter count missing exception</p>
  
  <pre><code>  List&lt;System.Runtime.Serialization.ExtensionDataObject&gt; extData = temp.Select(x =&gt; x.ExtensionData).ToList();
               var GetCountry = extData.GetType().GetProperties();
  
                string Country = string.Empty;
                  foreach (var property in GetCountry)
                  {
                      string name = property.Name;
                      object value = property.GetValue(extData, null);
                      if (name == "Country")
                          Country = value.ToString();
  
                  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/9K2Vp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9K2Vp.png" alt="enter image description here"></a></p>