Chaos Project

Game Development => Sea of Code => Topic started by: G_G on April 18, 2010, 03:09:46 pm

Title: Hashes?
Post by: G_G on April 18, 2010, 03:09:46 pm
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#?
Title: Re: Hashes?
Post by: winkio on April 18, 2010, 03:40:30 pm
HashSet in System.Collections.Generic
Title: Re: Hashes?
Post by: Blizzard on April 19, 2010, 02:49:58 am
I think you have Map and Dictionary for that as well. All of them should be in System.Collections.Generic.