using System.Collections.Generic;
public static class PokemonLookup {
static Dictionary<string, string[]> dict = new Dictionary<string, string[]>();
static public void Initialize() {
dict.Add("Water", new string[]{"Squirtle", "Tentacool", "Psyduck"});
dict.Add("Grass", new string[]{"Bulbasaur", "Oddish", "Gloom"});
dict.Add("Fire", new string[]{"Charmander", "Vulpix"});
dict.Add("Fairy", new string[]{"Jigglypuff"});
static public string[] LookupByType(string pokemonType) {
dict.TryGetValue(pokemonType, out result);
Console.WriteLine("Water Type pokemon: {0}", result);
public static void Main()
PokemonLookup.Initialize();
LookupByType string[] water = new LookupByTyp("water");