Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Custom lists, or something else?
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Adam Turner
17y
2.2k
1
Reply
I'm looking for the equivalent of an associative array that will allow me to store strings with textures. I'm new to C# so I can't seem to find a datum that will allow me to accomplish this.
Example:
Dictionary
<
string,
Texture2D
> textures =
new
Dictionary
<
string,
Texture2D
>();
Except dictionary doesn't accomplish this. There are so many list type classes that I'm finding them quite confusing to keep track of, but from what I think I've surmised, it doesn't seem like theres a list type out there that will do anything other than store two string values.
Ultimately, it would be great if all I had to do to access the list was use a syntax like:
textures["cooltexture"]
Any help would be greatly appreciated. Do I need to look in to createing my own list class?
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Imageprocessing:Draw and Save the drawing
Help with TypeLoadException (marshaling unmanaged code)