Hey guys!
Is there a way to store an object with multiple properties? I’m looking for something similar to an object literal from javascript. Here is an example of what I’m looking for:
Customer would have properties: name, email, and age.
Customer1 = {name: “Steve”; email: "steve@gmail.com; age: “43”}
Customer2 = {name: “Sam”; email: "sam@gmail.com; age: “23”}
Then, I’d like to be able to have multiple customers in a list that I can iterate through, pulling the name, email or age from the object. Is this doable? The closest thing I could find was a dictionary, but that only allows me to set 1 value per key. In this case, I’d like to set 3 or 4 values per key.
Thanks in advance!