public string GetNameBySSN(string SSN)
{
var results = from c in Clients
where c.ClientSSN.Equals(IRRCNumber)
select c.FirstName;
//return results.ToString();
}
I want to return a single column value with Linq and not sure if there is way to do a quick easy return. I commented section of code that I know does not return the value and if enumerate through collection I can get the value but wondering if a better way was around.
I do understand that Linq is Set based and that it has no upfront means know that the result is set with a single member.