Given the below code snippet - is the Customer Property Getting or Setting here?
I generally find it uneasy to grasp as to whether a Property is Getting data ready for returning or Setting the data...
order.Customer = _customerDao.GetCustomerByOrder(order.OrderId);
Thanks
Code analysis
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Mar 7, 2012, 12:04 AM EST
If the property returns a Customer object, then the following would be an example of getting:
Customer cust = order.Customer;
Guest UserRank #4,868 · 321 reputationPosted Mar 7, 2012, 12:11 AM EST
So therefore cust is the local variable which is storing the result of the property?
VulpesRank #55 · 29.2K reputationPosted Mar 7, 2012, 12:20 AM EST