title: Create a method which return a list of parameters (const string) from a class
body: <p>I'm developing a class which contains some const strings</p>
  
  <pre><code>public static class Constants
  {
      public const string CarID= "car_id";
      //public const string NumberID= "number_id"; // this is the second const string might be added, so 
      //the new created function can return the two
  
  }
  
  public class CarENParameters
  {
  
      public string Params { get; set; }
  
      public CarENParameters(string carId)
      {
          Params = carId;
      }
  
  }
  
  public static class CarPropertyProcess
  {
      //test params
  
      public static CarENProps Parse(Uri uri,string content)
      {
  
          string carID= Regex.Matches(content, @"\$\('#CarXL'\)\.val\((\d+)\)", RegexOptions.None)[0].Groups[1].Value;
  
          var parameters = new Dictionary&lt;string, string&gt;
          {
              {Constants.CarID, carID},        
          };
  
          return new CarENProps(uri.AbsoluteUri, parameters);
      }
  
      public static CarENParameters GetParameters()
      {
          return new CarENParameters(Constants.CarID);
      }
  }
  </code></pre>
  
  <p>In the class Constants, I have one <code>carID</code>, now the case is it might have more than one const string like : <code>public const string NumberID= "number_id";</code></p>
  
  <p>So I want to create one function to return a list of those const strings, which are <code>car_id</code> and <code>number_id</code>  with a class name CarENParameters but I havent figured out how to return a list by a get/set in a class, should I use dictionary or keyvaluespair to achieve that ? I'm quite new to C# so hope that I can have a better point of view from the helps of you guys. Thanks</p>