In C#, you work with associative arrays using the Dictionary<TKey, TValue> class.
Dictionary<TKey, TValue>