Hi Noushad,
You can set the contact lookup field using below C# code:
_EntityToUpdate.ContactPersonName = new EntityReference("contact", targetContactGuid);
Note:
ContactPersonName is the lookup field name
targetContactGuid is the guid object which contain the guid of contact which you want to set the contact lookup field