using System.Collections.Generic;
public static class PokemonLookup{
static Dictionary<string, string[]> dict = new Dictionary<string, string[]>();
static public void Initialize()
string[] ListWater = new string[] {"Squirtle", "Tentacool", "Psyduck"};
string[] ListGrass = new string[] {"Bulbasaur", "Oddish", "Gloom"};
string[] ListFire = new string[] {"Charmander", "Vulpix"};
string[] ListFairy = new string[] {"Jigglypuff"};
dict.Add("Water", ListWater);
dict.Add("Grass", ListGrass);
dict.Add("Fire", ListFire);
dict.Add("Fairy", ListFairy);
static public string[] LookupByType(string pokemonType)
dict.TryGetValue(pokemonType,out pokemon);
public static void Main()
PokemonLookup.Initialize();
string[] ListPokemon = PokemonLookup.LookupByType("Water");
foreach(string p in ListPokemon)