using System.Collections.Generic;
public static class PokemonLookup {
static Dictionary<string, string[]> dict = new Dictionary<string, string[]>();
static public void Initialize() {
string[] arr_Water = {"Squirtle", "Tentacool", "Psyduck"};
string[] arr_Grass = {"Bulbasaur", "Oddish", "Gloom"};
string[] arr_Fire = {"Charmander", "Vulpix"};
string[] arr_Fairy = {"Jigglypuff"};
dict.Add("Water", arr_Water);
dict.Add("Grass", arr_Grass);
dict.Add("Fire", arr_Fire);
dict.Add("Fairy", arr_Fairy);
static public string[] LookupByType(string pokemonType) {
return dict[pokemonType];
public static void Main()
PokemonLookup.Initialize();
Console.WriteLine("List of Pokemon with {0} type: ", type);
foreach (string pokemon in PokemonLookup.LookupByType(type)){
Console.WriteLine(pokemon + ", ");