- Home /
Extending the Array class?
Hi there, basically I trying create keys from my arrays,
array.setKey(String, Value);
anyone know how i can achieve this :D thanks - C
Answer by Chris D · Jul 08, 2011 at 07:38 PM
Check out this helpful entry on the Wiki; it has the syntax available to set keys as you've described.
Okay that was perfect, only problem is that the XmlSerializer that I wanted to create the Hashtable for does not support Hashtables. So i'm back to square one! thanks a lot though, it's something new that may come in handy!
It's likely you'd be better off using Dictionary rather than Hashtable.
Your answer
![](https://koobas.hobune.stream/wayback/20220612135435im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Can't use remove with string[] ? 1 Answer
Iterating through multidimensional arrays 2 Answers
Comparing a string to an array extraction? 1 Answer
Get JSON array object string value 2 Answers
Label an array of buttons with an array of strings 2 Answers