So lately I have been using this method to return a string:
string uri = "http://localhost:8000/Service/Student";
XDocument xDoc = XDocument.Load(uri);
var studentcollection = xDoc.Descendants("Student")
.Select(n => new
{
FirstName = n.Element("FirstName").Value,
})
.ToList();
And it works fine, but if one of the values from the webservice is a byte[] will this method return that value? If not, how would you combine that method (because im use to it) and return a byte[]?
.Value.ToArray? would that be wrong