I want to compare two dynamic (entity type from EF) objects array and I have to save data for the changed field's value.
But I can't compare the values at runtime . I have attached the code bellow.
public string CompareDataObject(dynamic oldObject, dynamic newObject) { foreach (var source in oldObject) { foreach (var destination in newObject) { /* Compare code */ } } }
It will be helpful form me if someone help me out to get the "Compare code" block.
Thanks
Tanvir.