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
Loading
VulpesPosted Mar 7, 2012, 5:04 AM
If the property returns a Customer object, then the following would be an example of getting:
Customer cust = order.Customer;
VulpesPosted Mar 7, 2012, 5:20 AM
Guest UserPosted Mar 7, 2012, 5:11 AM
So therefore cust is the local variable which is storing the result of the property?