Hi all:
I need to create some container classes for vehicle information.
Something like below:
class Vehicle {
private Options[] o;
private Prices[] p;
// .... more attributes
public Options[] VehicleOptions {
get {
return o;
}
set {
o = value
}
}
public Prices[] VehiclePrices {
get {
return p;
}
set {
p = value
}
}
}
class Options {
private string optionName;
private int optionPrice;
public string OptionName {
get {}
set {}
}
public int OptionPrice {
get {}
set {}
}
}
class Prices {
private string priceName; // MSRP, List Price....
private int priceValue;
public string PriceName {
get {}
set {}
}
public int PriceValue {
get {}
set {}
}
}
The requirement is to handle multiple attributes, say a vehicle may have
more than one option on it, the the number of options is unlimited. Is there
a good idea to handle dynamic array? Or do you think indexer is a good idea?
Thanks for any suggesstion!
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy