Hi
i have the linq as follows:
orderList and ordergroup are 2 lists
foreach (var obj in orderList)
{
obj.Name = ordergroup.First(x => x.Id == obj.orderid).name;
}
If there is no match found then i get the above error "Sequence contains no matching element" and it throws an exception . How can i avoid this ?