Hashes?

Started by G_G, April 18, 2010, 03:09:46 pm

Previous topic - Next topic

G_G

I want to setup a hash like in ruby. So instead of just calling an index by a number I could use a string.

Ruby Example:
hash = {}
hash["string"] = 5


Anyway to set something like that in c#?

winkio

HashSet in System.Collections.Generic

Blizzard

I think you have Map and Dictionary for that as well. All of them should be in System.Collections.Generic.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.