I have two classes
public class foo1 { public int id; public string image_link; public string sale_price; }
and
public class foo2 { public int Id; public string ImageLink; public string SalePrice }
Property values differ only in underlining and cases. I need to match these two classes.
At the moment I'm trying something like this and its work:
I heard about AutoMapper, but I don’t have a clear idea of how I will use it or where cases or underscores in it can be ignored. or is there a better solution?
source share