I have been trying to find the awnser to this for a while. I am converting a site from php to asp. I have an array like this.
$students = array(
array(
"id" => "1",
"name" => "John",
"group" => "A"
),
array(
"id" => "2",
"name" => "Joe",
"group" => "A"
),
array(
"id" => "3",
"name" => "Derp",
"group" => "B"
),
);
foreach($student as $slacker){
//use the data
}
Is there any alternative that even comes close to this with asp?
You can make a class and use generic list to hold the array of your class type.