A
admin
I have a class that has a function that should query a database and
return a list of usernames as well as their id. What type should I use
as a return type, that can hold data such as:
user1, 1
user2, 2
user3, 3
?
Maybe an array, but I am lost in how to use one here. Is there no List
type that I can return, and then the calling procedure can do a
foreach on the list and populate a drop down list?
return a list of usernames as well as their id. What type should I use
as a return type, that can hold data such as:
user1, 1
user2, 2
user3, 3
?
Maybe an array, but I am lost in how to use one here. Is there no List
type that I can return, and then the calling procedure can do a
foreach on the list and populate a drop down list?