Here's my code to get the three parameters from a configuration!

C# Code:
  1. Configuration configuration = ConfigurationManager.OpenExeConfiguration(dllConfigFile);
  2.                 var appSettings = configuration.AppSettings.Settings;
  3.                 foreach (KeyValueConfigurationElement keyValueConfigurationElement in appSettings)
  4.                 {
  5.                     switch(keyValueConfigurationElement.Key)
  6.                         {
  7.                         case "WSUser": UserId = keyValueConfigurationElement.Value;
  8.                             break;
  9.                         case "WSUserPassword": UserPassword = keyValueConfigurationElement.Value;
  10.                             break;
  11.                         case "endpointurl": EndPointUrl = keyValueConfigurationElement.Value;
  12.                             break;
  13.                            
  14.                         }
  15.                 }

I want to eliminate the loop completely and just go after the specific key. I know the key names, so what is the syntax to do this?