get one property from list of objects linq code example
Example: get one property from list of objects linq
var result = from x in Contacts
where x.ContactTypeID == 2 && x.OrganizationName == "COMPANY XYZ"
select x.ContactID;