Creating object of another object
- From: "Maziar Aflatoun" <maz00@xxxxxxxxxx>
- Date: Wed, 6 Apr 2005 10:10:01 -0400
Hi everyone,
I like to do the following,
1. Create an object that holds the customer general information
2. Add multiple orders for the customer
3. Serialize and dump to XML
I have already taken care of part 1. and know part 3. However, what the best
of adding multiple orders for 1 customer. Ex.
Can someone please show me an example of adding multiple orders (Order) to
the Customer object? Can be 1 or more Orders.
public class Customer
{
public string FirstName;
public string LastName;
public Customer()
{
}
}
public class Order
{
public string Name;
public string Qty;
public Order()
{
}
}
Thank you
Maz.
.
- Follow-Ups:
- Re: Creating object of another object
- From: Kevin Spencer
- Re: Creating object of another object
- Prev by Date: Re: asp:button that opens a new webpage?
- Next by Date: Re: Multi Part Root Namespace causing 'could not load type' error
- Previous by thread: Set width dynamically for textbox based on length
- Next by thread: Re: Creating object of another object
- Index(es):