I have two objects that are both type Shoppingcart. One is called shoppingcartA, the other shoppingcartDefault.
shoppingcartA has some of the properties set, but some are NULL. I want to replace every property of shoppingcartA that is NULL with the value that shoppingcartDefault has.
The problem is that I don't know the names of these properties (or I do, but there are 100 properties and I don't want to manualy type them all).
I've looked at a foreach that loops over every property that shopingcartA has but couldn't find a way to then take that same property from shoppingcartDefault and stick it in there.