Guest User

Guest User

  • Tech Writer
  • 357
  • 121.1k

Can anyone explain this method please

Feb 22 2012 9:11 AM
A Take method that extracts property values from the business object and adds these to an object array.

private Object[] Take(Customer customer)

return new Object[] 
{
        "@CustomerId", customer.CustomerId,
        "@CompanyName", customer.Company,
}

From this I can see that the method returns a new object array which contains comma seperated values, one string and one the actual property of the customer class, but I cant see how these are binded or are they not? is it simply a name\key, value pair on the returned collection? 

Answers (1)