using System; using System.Collections.Generic; public class Test { enum EnvironmentEnum { dev, uat, production } public static void Main() { var env = EnvironmentEnum.uat; var path = new Dictionary { { EnvironmentEnum.dev, "http://localhost:55793/" }, { EnvironmentEnum.uat, "http://d...content-available-to-author-only...h.com/" }, { EnvironmentEnum.production, "http://y...content-available-to-author-only...h.com/" } }[env]; Console.WriteLine(path); } }