title: Retrieving item from list
body: <p>I'm having some problems retrieving information from a list.</p>
  
  <p>In this case I'd like to get the name from a list, eventually I want it turned into a string. This is what I have:</p>
  
  <pre><code>public string ShowName(int patientcode)
  {
      List&lt;ExtendPatientInfo&gt; patientdata = dk.RetrieveList(patientcode);
      string name = patientdata. &lt;What here?&gt;
      return name;
  }
  </code></pre>
  
  <p>In the class ExtendPatientInfo I have this, which I think is allright:</p>
  
  <pre><code>private string name;
  public ExtendPatientInfo(string name)
  {
      this.name = name;
  }
  
  public string Name
  {
      get
      {
          return name;
      }
  }
  </code></pre>
  
  <p>I tried using a few things. Like Contains, Find, FindIndex and where. But none of these worked for me because I probably messed something up somewhere. Anybody that can help me?</p>