I want to make a program that store phones like:
Brand: Samsung
Type: Galaxy S3
Price: 199.95
Ammount: 45
-------------------
Brand: LG
Type: Cookie
Price: 65.00
Ammount: 13
-------------------
etc, etc, etc,
What is the best practices to do that?
In php I should have done:
$phones = array(
array(
array("Brand" => "Samsung"),
array("Type" => "Galaxy S3"),
array("Price" => 199.95),
array("Ammount" => 45)
),
array(
array("Brand" => "LG"),
array("Type" => "Cookie"),
array("Price" => 65.00),
array("Ammount" => 13)
)
)
Is this also possible in C#, because I dont know how many phones there are going in the list, and the datatypes are different: string, decimal, int.
I dont know what to use because you have lists, structs, objects, classes and so further.
Thanks in advance!