sde
Well-known member
i have a customer object and a phone object. the phone object is a property of the customer object in the form of an array.
im not sure how to explain this, but look at this code:
how do i create that "Add" method to Phone without having to reference a specific instance of that phone array?
i mean:
Phone.Add vs. Phone[0].Add
does this make sense?
im not sure how to explain this, but look at this code:
Code:
// if the phone array contained 2 elements
// this is how i could access the phone numbers
MessageBox.Show(Customer.Phone[0].Text);
MessageBox.Show(Customer.Phone[1].Text);
// add a phone to the array with this call
Customer.Phone.Add("8005551212");
how do i create that "Add" method to Phone without having to reference a specific instance of that phone array?
i mean:
Phone.Add vs. Phone[0].Add
does this make sense?