C# Generic Passing different objects with same properties
I am not sure if what I am doing is possible. I have 2 methods. The body of the 2 methods are exactly identical, however the signature of the method both parameter and return are different. The passed in parameter's properties are changed and the object are different but have the same property name (They are two different Entity Framwork Entities). Inheriting both from a base object is not possible (i think) because these are Entity Framework Entities. Best to show example then talk about it.. Method 1 private static IQueryable<MapListing> ApplyMapFilterToListings(IQueryable<MapListing>