title: get the class property name from list
body: <p>Here is the my question:</p>
  
  <p>I have a class like this:</p>
  
  <pre><code>        class Artical
          {
  
              public int Id { get ; set;}
              public string Content-Language-en  { get ; set;}
              public string  Content-Language-de  { get ; set;}
              public string  Content-Language-ru  { get ; set;}
          }
  
      List&lt;Artical&gt; lst = new List&lt;Artical&gt;()
                           { new Artical{1,'en-content here ','','' },
                             new Artical{2,'russian content here','',''} };
  </code></pre>
  
  <p>I am getting session value like this: <code>Sesion["Lang"].ToString()</code>.</p>
  
  <p><code>string Content-Language-en = Sesion["Lang"].ToString() ;</code>
  //depends on the lang of the web page which user select.</p>
  
  <p>What I need here is something like this:</p>
  
  <pre><code>foreach(var item in lst)
  {
  
      if  (Content-Language-en ==(item property name)* ) 
      * I don't know how I can get the property name here!!
          {
           // do something
         }
          if  (Content-Language-ru ==(item property name)* ) 
      * I don't know how I can get the property name here!!
          {
           // do something
         }
  }
  </code></pre>