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) {
if (pokemonType == "Water") return dict["Water"];
else if (pokemonType == "Grass") return dict["Grass"];
else if (pokemonType == "Fire") return dict["Fire"];
else if (pokemonType == "Fairy") return dict["Fairy"];
public static void Main()
PokemonLookup.Initialize();
foreach (string value in PokemonLookup.LookupByType("Water"))
Console.WriteLine("{0}", value);